Created
August 19, 2015 15:53
-
-
Save aeppert/4c255378161cb591497d to your computer and use it in GitHub Desktop.
NGINX Configuration for massive-octo-spice
This file contains 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 characters
server { | |
listen 80 default_server; | |
listen 443 ssl; | |
server_name 127.0.0.1; #_; | |
gzip on; | |
gzip_comp_level 2; | |
gzip_http_version 1.0; | |
gzip_proxied any; | |
gzip_min_length 1100; | |
gzip_buffers 16 8k; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/jav | |
ascript; | |
ssl_certificate /etc/pki/tls/certs/our.chained.crt; | |
ssl_certificate_key /etc/pki/tls/private/our.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv2 SSLv3 TLSv1; | |
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | |
ssl_prefer_server_ciphers on; | |
# Disable for IE < 6 because there are some known problems | |
gzip_disable "MSIE [1-6].(?!.*SV1)"; | |
# Add a vary header for downstream proxies to avoid sending cached gzipped files to IE6 | |
gzip_vary on; | |
#charset koi8-r; | |
location ~ ^/(help|ping|observables)$ { | |
error_log /var/log/nginx/cif/error.log; | |
gzip off; | |
proxy_redirect off; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:5000/$1?$args; | |
} | |
error_page 404 /404.html; | |
location = /404.html { | |
root /usr/share/nginx/html; | |
} | |
# redirect server error pages to the static page /50x.html | |
# | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment