Last active
December 10, 2015 20:03
-
-
Save hpcorona/de6e58ee43c86b62b0c4 to your computer and use it in GitHub Desktop.
Revisions
-
hpcorona revised this gist
Dec 10, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto http; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -
hpcorona created this gist
May 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.html; # Make site accessible from http://localhost/ server_name localhost; location / { try_files $uri @proxy; } location @proxy { proxy_pass http://localhost:9000; proxy_redirect off; proxy_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } location /web/ { root /var/www/html; index index.html; expires 7d; if ($request_uri ~* \.nocache\.(html|js|gif)$) { add_header Last-Modified "{now} GMT"; add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; add_header Cache-Control "post-check=0, pre-check=0"; add_header Pragma no-cache; expires -1d; } } }