Author Topic: SSL on pm2 service?  (Read 804 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SSL on pm2 service?
« on: September 04, 2020, 12:55:50 PM »
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.

Offline
*****
Re: SSL on pm2 service?
« Reply #1 on: September 05, 2020, 06:32:54 AM »
try to proxy the port via nginx go to webserver settings > domain setting >> select user >> domain >> create config and choose nginx + proxy port

Offline
*
Re: SSL on pm2 service?
« Reply #2 on: September 05, 2020, 10:25:22 AM »
That was it.

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

Thanks a lot.