Archived
1
0
Fork 0
This repository has been archived on 2024-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
weewx-docker/defaults/nginx.conf

40 lines
587 B
Nginx Configuration File

worker_processes auto;
error_log off;
user weewx;
events {
worker_connections 1024;
}
http {
server_tokens off;
access_log off;
include /etc/nginx/mime.types;
sendfile on;
tcp_nopush on;
gzip on;
gzip_vary on;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
server {
listen 8000;
root /data/html;
index index.html;
location = / {
return 307 /wdc;
}
location ~* \.(html|json)$ {
expires modified 120s;
}
location ~* \.(js|css|png)$ {
expires 3d;
}
}
}