Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.31k stars 2.61k forks source link

How to run pm2 over https ?? #5830

Open ChamkhiAnas opened 3 months ago

ChamkhiAnas commented 3 months ago

What's going wrong?

hello im using pm2 to deploy nuxt app on nginx , the problem is that on csr mode app is working very well but on ssr mode it doesnt fetch the data because of Blocked loading mixed active content it tries to fetch from localhost over https api , so i need to make pm2 run over https for the app to be able to work on both mode (csr and ssr)

dimitriaatos commented 3 months ago

This doesn't sound pm2 relate, pm2 is responsible only for starting up your app. I suspect you have to make your api accessible over the internet and call its domain or ip instead of localhost.