all repos — caroster @ 46de3fb5bace8c21638e31f9ce8330ba62b07e32

[Octree] Group carpool to your event https://caroster.io

🔧 Fix nginx & pm2 configs
Tim Izzo tim@octree.ch
Wed, 07 Sep 2022 17:53:57 +0200
commit

46de3fb5bace8c21638e31f9ce8330ba62b07e32

parent

32732b353905327e909da38f1d1ee34acc788404

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M ecosystem.config.jsecosystem.config.js

@@ -16,6 +16,10 @@ script: "yarn",

args: "start", interpreter: "sh", restart_delay: 10000, + env: { + PORT: 3000, + STRAPI_URL: `http://localhost:1337`, + }, }, ], };
M nginx.confnginx.conf

@@ -10,6 +10,9 @@ server {

listen 80 default_server; listen [::]:80 default_server; + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/access.log; + proxy_http_version 1.1; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host;