Add files required for deployment

This commit is contained in:
2026-01-11 22:31:05 +01:00
parent e2cffb4536
commit b7a066b121
2 changed files with 39 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Alle HTML-Seiten
location / {
try_files $uri $uri/ =404;
}
# Assets (CSS, JS, Bilder)
location /assets/ {
alias /usr/share/nginx/html/assets/;
try_files $uri =404;
autoindex off;
access_log off;
expires 7d; # optional: Browser-Cache für Assets
}
# Optional: Media/Uploads
location /media/ {
alias /usr/share/nginx/html/media/;
try_files $uri =404;
access_log off;
expires 7d;
}
}