Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WT5AWHW7UkHrBjhNyA2y8X
28 lines
1.1 KiB
Nginx Configuration File
28 lines
1.1 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
charset utf-8;
|
|
|
|
gzip on;
|
|
gzip_types text/css application/javascript image/svg+xml application/json;
|
|
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), interest-cohort=()" always;
|
|
add_header Content-Security-Policy "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; font-src 'self'; frame-ancestors 'self'; base-uri 'self'" always;
|
|
|
|
location /assets/ {
|
|
expires 30d;
|
|
add_header Cache-Control "public, max-age=2592000";
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
}
|
|
location = /impressum { try_files /impressum.html =404; }
|
|
location = /datenschutz { try_files /datenschutz.html =404; }
|
|
location / { try_files $uri $uri/ $uri.html =404; }
|
|
error_page 404 /index.html;
|
|
}
|