fix(nginx): Do not cache all requests for a day in the reverse proxy

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2673>
environments/review-docs-user-s36fyb/deployments/18950
Georg Krause 2023-12-08 13:46:32 +00:00 zatwierdzone przez Marge
rodzic b00daa189d
commit da01070455
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1 @@
Do not cache all requests to avoid missing updates #2258

Wyświetl plik

@ -78,7 +78,6 @@ server {
# end of compression settings
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://fw;
}

Wyświetl plik

@ -159,7 +159,9 @@ server {
{% endif %}
location / {
{% if not config.reverse_proxy %}
expires 1d;
{% endif %}
include /etc/nginx/funkwhale_proxy.conf;
{% if config.proxy_frontend and not config.reverse_proxy %}
proxy_pass http://funkwhale-front;