🔧 Fix nginx & pm2 configs
        Tim Izzo tim@octree.ch
        
        
        
        
        
        Wed, 07 Sep 2022 17:53:57 +0200
        
          2 files changed,
          7 insertions(+),
          0 deletions(-)
          
          
        
            
            
            
            M
            
          
          ecosystem.config.js
          
            → 
            ecosystem.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.conf
          
            → 
            nginx.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;