kios-webapp/astro/nginx.conf
Max Schmidt 12cb58b891 test
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
2023-10-24 09:38:55 +02:00

20 lines
622 B
Nginx Configuration File

http {
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
server {
listen 3000;
location ~* \.(jpg|jpeg|png|gif|ico|css|js|htm|html)$ {
expires 30d; # set long caching period on static files
add_header Pragma public;
add_header Cache-Control "public";
try_files $uri $uri/ =404; # serve file if it exists, otherwise 404
}
}
}