This commit is contained in:
2024-11-05 11:08:28 +01:00
parent 32d7f8a8f5
commit 8ee85912cc
15 changed files with 205 additions and 9 deletions

35
nginx/nginx.conf Normal file
View File

@@ -0,0 +1,35 @@
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;
}
}
}