New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

SSL on pm2 service?

Started by dalai, September 04, 2020, 12:55:50 PM

Previous topic - Next topic

dalai

Hi,

I got a dedicated server for a project. I already configured my domain with let's encrypt ssl, frontend and backend api and everything is up and running so far.

The backend api is running through jenkins/pm2 and it's up on my ip:port3333 but I need it to be ssl. If I try https://mydomain.com:3333 i get an ERR_SSL_PROTOCOL_ERROR which i guess it's normal.

So, how can I point a domain or subdomain to the service port and apply an ssl to it? Or if I can't, how should I proceed to get the service running with ssl?

Any idea?

Thanks in advance.

Sandeep

try to proxy the port via nginx go to webserver settings > domain setting >> select user >> domain >> create config and choose nginx + proxy port

dalai

That was it.

I would have sworn I've tried this yesterday, but oh well, it's working now.

Thanks a lot.