fix(api): expires to 1m

darta 2022-01-21 14:20:39 +00:00
parent bed86a2447
commit a6b675c5f7
1 changed files with 10 additions and 10 deletions

View File

@ -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;
}
}
}