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>
This commit is contained in:
parent
b00daa189d
commit
da01070455
|
@ -0,0 +1 @@
|
||||||
|
Do not cache all requests to avoid missing updates #2258
|
|
@ -78,7 +78,6 @@ server {
|
||||||
# end of compression settings
|
# end of compression settings
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 1d;
|
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
proxy_pass http://fw;
|
proxy_pass http://fw;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,9 @@ server {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
{% if not config.reverse_proxy %}
|
||||||
expires 1d;
|
expires 1d;
|
||||||
|
{% endif %}
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
{% if config.proxy_frontend and not config.reverse_proxy %}
|
{% if config.proxy_frontend and not config.reverse_proxy %}
|
||||||
proxy_pass http://funkwhale-front;
|
proxy_pass http://funkwhale-front;
|
||||||
|
|
Loading…
Reference in New Issue