Skip to content

Commit

Permalink
Update onlyoffice-proxy.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Apr 9, 2024
1 parent 490d719 commit ad642cd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions install/docker/config/nginx/onlyoffice-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ proxy_hide_header 'X-Powered-By';

proxy_cache_path /var/cache/openresty levels=1:2 keys_zone=cache_proxy:10m max_size=1g inactive=24h use_temp_path=off;

map $upstream_http_cache_control $cache_condition {
~*max-age=0|~*s-maxage=0 1;
~*private|~*no-store 0;
~*max-age=(\d+)|~*s-maxage=(\d+) 0;
~*immutable 0;
default 1;
}

server {
listen 0.0.0.0:80;
listen [::]:80 default_server;
Expand All @@ -28,7 +20,6 @@ server {

proxy_cache cache_proxy;
proxy_cache_revalidate on;
proxy_no_cache $cache_condition;
proxy_cache_valid 200 206 301 120m;
proxy_cache_valid 302 303 20m;
proxy_cache_valid 404 410 3m;
Expand Down

0 comments on commit ad642cd

Please sign in to comment.