Initial Commit

This commit is contained in:
2026-04-19 21:34:38 +02:00
parent 1ce0d9aecd
commit e720d1fabf
8 changed files with 432 additions and 2 deletions

43
nginx.conf Normal file
View File

@@ -0,0 +1,43 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Security Headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
# Gzip-Komprimierung
gzip on;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types
text/plain
text/css
text/javascript
application/javascript
application/json
application/xml
image/svg+xml;
location / {
try_files $uri $uri/ =404;
}
# Statische Assets cachen
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 7d;
add_header Cache-Control "public";
}
# Zugriff auf versteckte Dateien blockieren
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}