diff --git a/docker/nginx.conf b/docker/nginx.conf index 9187d87..f526d62 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -40,6 +40,13 @@ http { # Serves static files from the collected dir location /static/ { alias /takahe/static-collected/; + try_files $uri /static//static-real$uri; + } + + # Static fallback for dev mode + location /static-real/ { + internal; + proxy_pass http://takahe/; } # Proxies media and remote media with caching