Created
March 14, 2020 22:48
-
-
Save p4block/519bd8b6ce89f6e329a6b7b4cdcae4d0 to your computer and use it in GitHub Desktop.
Fully automated luxury gay space nginx.conf for container use. Mount to /etc/nginx/nginx.conf and your webpage to /usr/share/nginx/html.
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 characters
user nginx; | |
worker_processes 12; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 65; | |
types_hash_max_size 2048; | |
gzip on; | |
gzip_disable "msie6"; | |
gzip_proxied any; | |
gzip_comp_level 5; | |
gzip_types | |
application/atom+xml | |
application/javascript | |
application/json | |
application/xml | |
application/xml+rss | |
image/svg+xml | |
text/css | |
text/javascript | |
text/plain | |
text/xml; | |
gzip_vary on; | |
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html; | |
} | |
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webp|webm|ttf|otf)$ { | |
expires 7d; | |
add_header Cache-Control "public"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment