mirror of
https://github.com/YunoHost-Apps/penpot_ynh.git
synced 2024-09-03 19:56:56 +02:00
Fixed some linter warnings.
This commit is contained in:
parent
7769311270
commit
40ae4113e0
1 changed files with 14 additions and 14 deletions
|
@ -15,9 +15,9 @@ location @handle_redirect {
|
||||||
proxy_hide_header x-amz-server-side-encryption;
|
proxy_hide_header x-amz-server-side-encryption;
|
||||||
proxy_pass $redirect_uri;
|
proxy_pass $redirect_uri;
|
||||||
|
|
||||||
add_header x-internal-redirect "$redirect_uri";
|
more_set_headers "x-internal-redirect: '$redirect_uri'";
|
||||||
add_header x-cache-control "$redirect_cache_control";
|
more_set_headers "x-cache-control: '$redirect_cache_control'";
|
||||||
add_header cache-control "$redirect_cache_control";
|
more_set_headers "cache-control: '$redirect_cache_control'";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /assets {
|
location /assets {
|
||||||
|
@ -42,15 +42,15 @@ location /internal/gfonts/css {
|
||||||
proxy_set_header Host "fonts.googleapis.com";
|
proxy_set_header Host "fonts.googleapis.com";
|
||||||
proxy_set_header Accept "*/*";
|
proxy_set_header Accept "*/*";
|
||||||
|
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
more_set_headers "Access-Control-Allow-Origin: $http_origin";
|
||||||
add_header Cache-Control max-age=86400;
|
more_set_headers "Cache-Control: max-age=86400";
|
||||||
add_header X-Cache-Status $upstream_cache_status;
|
more_set_headers "X-Cache-Status: $upstream_cache_status";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /internal/assets {
|
location /internal/assets/ {
|
||||||
internal;
|
internal;
|
||||||
alias __DATA_DIR__/assets;
|
alias __DATA_DIR__/assets/;
|
||||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
more_set_headers "x-internal-redirect: '$upstream_http_x_accel_redirect'";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/export {
|
location /api/export {
|
||||||
|
@ -90,17 +90,17 @@ location / {
|
||||||
|
|
||||||
# proxy_cache penpot;
|
# proxy_cache penpot;
|
||||||
|
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
more_set_headers "Access-Control-Allow-Origin: $http_origin";
|
||||||
add_header Cache-Control max-age=86400;
|
more_set_headers "Cache-Control: max-age=86400";
|
||||||
add_header X-Cache-Status $upstream_cache_status;
|
more_set_headers "X-Cache-Status: $upstream_cache_status";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(js|css).*$ {
|
location ~* \.(js|css).*$ {
|
||||||
add_header Cache-Control "max-age=86400" always; # 24 hours
|
more_set_headers "Cache-Control: 'max-age=86400' always"; # 24 hours
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(html).*$ {
|
location ~* \.(html).*$ {
|
||||||
add_header Cache-Control "no-cache, max-age=0" always;
|
more_set_headers "Cache-Control: 'no-cache, max-age=0' always";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(/|css|fonts|images|js|wasm) {
|
location ~ ^/(/|css|fonts|images|js|wasm) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue