From a6b675c5f77451189f03d721964625305e2bed91 Mon Sep 17 00:00:00 2001 From: darta Date: Fri, 21 Jan 2022 14:20:39 +0000 Subject: [PATCH] fix(api): expires to 1m --- docker/api/default.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docker/api/default.conf b/docker/api/default.conf index ce937d8..a633301 100644 --- a/docker/api/default.conf +++ b/docker/api/default.conf @@ -7,7 +7,7 @@ server { server_name localhost; root /api/api/static/; - expires max; + expires 1m; log_not_found off; access_log off; @@ -15,14 +15,14 @@ server { location /avatar { proxy_pass http://127.0.0.1:7039/avatar; - expires max; + expires 1m; log_not_found off; access_log off; } location /restart { proxy_pass http://127.0.0.1:7039/restart; - expires max; + expires 1m; log_not_found off; access_log off; } @@ -31,7 +31,7 @@ server { alias /api/api/static/templates/user_menu_header.json; default_type application/json; index user_menu_header.json; - expires max; + expires 1m; log_not_found off; access_log off; } @@ -40,7 +40,7 @@ server { alias /api/api/static/templates/user_menu_header.html; default_type text/html; index user_menu_header.html; - expires max; + expires 1m; log_not_found off; access_log off; } @@ -49,7 +49,7 @@ server { alias /api/api/static/templates/header.json; default_type application/json; index header.json; - expires max; + expires 1m; log_not_found off; access_log off; } @@ -58,7 +58,7 @@ server { alias /api/api/static/templates/header.html; default_type text/html; index header.html; - expires max; + expires 1m; log_not_found off; access_log off; } @@ -67,15 +67,15 @@ server { alias /api/api/static/templates/header_nextcloud.html; default_type text/html; index header_nextcloud.html - expires max; + expires 1m; log_not_found off; access_log off; } location / { try_files $uri $uri/ - expires max; + expires 1m; log_not_found off; access_log off; } -} \ No newline at end of file +}