kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
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
rodzic
259fb1b61d
commit
3ee6ba6658
|
@ -0,0 +1 @@
|
||||||
|
Fix regression that prevent static files from being served in non-docker-deployments (#2256)
|
|
@ -192,4 +192,7 @@ server {
|
||||||
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
|
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /staticfiles/ {
|
||||||
|
alias ${STATIC_ROOT}/;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -261,5 +261,10 @@ server {
|
||||||
alias /usr/share/nginx/html/staticfiles/;
|
alias /usr/share/nginx/html/staticfiles/;
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not config.reverse_proxy and not config.inside_docker %}
|
||||||
|
location /staticfiles/ {
|
||||||
|
alias ${STATIC_ROOT}/;
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue