Files
Spritpreise/nginx/nginx.conf
2024-11-05 11:08:28 +01:00

36 lines
743 B
Nginx Configuration File

worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 6342;
server_name localhost;
root /opt/www;
index index.html;
location ~* \.(html|htm|css|js|png|jpg|jpeg|gif|ico|svg)$ {
expires 1d;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
try_files $uri $uri/ =404;
}
location / {
try_files $uri $uri/ /index.html; # Fallback zu index.html für SPA (Single-Page Applications)
}
location ~ /\.ht {
deny all;
}
}
}