mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-26 09:11:00 +00:00
parent
ca3dc82a62
commit
6453c170f7
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,13 @@ http {
|
||||||
# Serves static files from the collected dir
|
# Serves static files from the collected dir
|
||||||
location /static/ {
|
location /static/ {
|
||||||
alias /takahe/static-collected/;
|
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
|
# Proxies media and remote media with caching
|
||||||
|
|
Loading…
Reference in a new issue