Shopping: - Merged view (default): same ingredient + unit = summed amounts (150g Quark + 300g Quark → 450g Quark) - Shows which recipes need each ingredient - Toggle between 'Zusammengefasst' and 'Nach Rezept' views - Alphabetically sorted in merged view Household bugfixes: - Fixed bouncy modal animation (removed Framer Motion spring) - Fixed clipboard copy on HTTP (textarea fallback) - Fixed logout on join (JWT secrets mismatch in docker-compose) Also: mounted backend data/ volume for recipe images
40 lines
1.0 KiB
Nginx Configuration File
40 lines
1.0 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Image proxy to backend
|
|
location /images/ {
|
|
proxy_pass http://backend:6001;
|
|
proxy_set_header Host $host;
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
# API proxy to backend
|
|
location /api/ {
|
|
proxy_pass http://backend:6001;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
# SPA fallback
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Cache static assets
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
# Gzip
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml;
|
|
gzip_min_length 1000;
|
|
}
|