zakscode/docker/nginx.conf

40 lines
770 B
Nginx Configuration File
Raw Normal View History

2022-05-02 21:10:15 -04:00
worker_processes auto;
pid /var/run/nginx.pid;
events {
2022-05-17 13:52:38 -04:00
worker_connections 1024;
2022-05-02 21:10:15 -04:00
}
http {
2022-05-17 13:52:38 -04:00
include mime.types;
default_type application/octet-stream;
gzip on;
gzip_proxied any;
gzip_types text/plain text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript application/json application/x-font-woff;
gzip_vary on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
sendfile off;
keepalive_timeout 65;
server {
listen 80;
index index.html;
root /usr/share/nginx/html;
autoindex off;
location / {
try_files $uri$args $uri$args/ /index.html;
}
location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}
}
2022-05-02 21:10:15 -04:00
}