- Galerie laedt Bilder dynamisch per JavaScript statt Jekyll-Loop - nginx autoindex liefert JSON-Bilderliste - Nextcloud-Ordner (Websitebilder) wird als Volume gemountet - ImageMagick generiert automatisch 512px Thumbnails - Hintergrund-Check alle 60s fuer neue Bilder - Neuer entrypoint.sh fuer Thumbnail-Generierung + nginx Start Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
693 B
Nginx Configuration File
34 lines
693 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Bilder-Verzeichnis: JSON-Listing fuer dynamische Galerie
|
|
location /images/fulls/ {
|
|
autoindex on;
|
|
autoindex_format json;
|
|
}
|
|
|
|
location /images/thumbs/ {
|
|
autoindex on;
|
|
autoindex_format json;
|
|
}
|
|
|
|
# Caching fuer Bilder und Assets
|
|
location ~* \.(jpg|jpeg|png|gif|svg|ico|css|js|woff|woff2|ttf|eot|otf|webp)$ {
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
# SPA-Fallback
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Sicherheit
|
|
location ~ /\. {
|
|
deny all;
|
|
}
|
|
}
|