fix(deploy): Serve staticfiles in bare metal deployments

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2665>
This commit is contained in:
Georg Krause 2023-12-04 15:56:12 +00:00 committed by Kasper Seweryn
commit 3ee6ba6658
3 changed files with 9 additions and 0 deletions

View file

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