# NGINX CONF ATLAS VOYAGES upstream node_atlasvoyage_de { server unix:/atlasvoyages/apps/atlas-voyages/http.sock; } server { listen 7778; set $public /atlasvoyages/apps/atlas-voyages/public; #access_log /Users/hotelia/atlasvoyages/pine-server-old/logs/atlas-voyages.access.log; #error_log /Users/hotelia/atlasvoyages/pine-server-old/logs/atlas-voyages.error.log; location / { # Set this to your upstream module. proxy_pass http://node_atlasvoyage_de; proxy_read_timeout 40s; proxy_send_timeout 20s; proxy_connect_timeout 5s; proxy_buffers 8 32k; proxy_buffer_size 64k; # Proxy headers. proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_set_header X-NginX-Proxy true; # these for for socket # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection "upgrade"; # proxy_cache_bypass $http_upgrade; proxy_set_header Connection ""; proxy_http_version 1.1; proxy_redirect off; } # Cache busting for scripts location ~ ^/scripts/(.+)/\d+\.([^/]+)\.js$ { alias $public/scripts/$1/$2.js; add_header Vary Accept-Encoding; #expires max; } # CSS and Javascript location ~ ^/(robots.txt|sitemap.xml|favicon.ico|img/|css/|scripts/|assets/) { root $public; expires 24h; } }