Created
May 27, 2015 21:06
-
-
Save rgwozdz/22232c592b509236cc52 to your computer and use it in GitHub Desktop.
Static site NGINX
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
upstream apt-web{ | |
server 127.0.0.1; | |
} | |
# NGINX Server Instance | |
server { | |
listen 0.0.0.0:80; | |
server_name apt.spatialdevmo.com; | |
access_log /var/log/nginx/apt.spatialdevmo.log; | |
# Gzip Compression | |
gzip on; | |
gzip_comp_level 6; | |
gzip_vary on; | |
gzip_min_length 1000; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript | |
gzip_buffers 16 8k; | |
location / { | |
root /static-deployments/apt-web; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment