fix(deploy): Serve staticfiles in bare metal deployments

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2665>
environments/review-docs-fix-p-l408cl/deployments/18888
Georg Krause 2023-12-04 15:56:12 +00:00 zatwierdzone przez Kasper Seweryn
rodzic 259fb1b61d
commit 3ee6ba6658
3 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fix regression that prevent static files from being served in non-docker-deployments (#2256)

Wyświetl plik

@ -192,4 +192,7 @@ server {
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
}
location /staticfiles/ {
alias ${STATIC_ROOT}/;
}
}

Wyświetl plik

@ -261,5 +261,10 @@ server {
alias /usr/share/nginx/html/staticfiles/;
}
{% endif %}
{% if not config.reverse_proxy and not config.inside_docker %}
location /staticfiles/ {
alias ${STATIC_ROOT}/;
}
{% endif %}
{% endif %}
}