Fall back to static serving if not collected

Fixes #218
This commit is contained in:
Andrew Godwin 2022-12-22 01:46:14 +00:00
parent ca3dc82a62
commit 6453c170f7
1 changed files with 7 additions and 0 deletions

View File

@ -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