fix: Correct STATIC_URL with leading slash and mount static_volume shared between backend and nginx

This commit is contained in:
Richard
2026-07-31 11:46:44 +02:00
parent 896dfda240
commit ba172d321f
4 changed files with 13 additions and 1 deletions
+7
View File
@@ -49,6 +49,13 @@ server {
}
location /static/ {
alias /usr/share/nginx/html/static/;
expires 30d;
add_header Cache-Control "public, no-transform";
try_files $uri @backend_static;
}
location @backend_static {
proxy_pass http://backend:8000/static/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;