mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 13:16:12 +02:00
✨ Minor improvements on storage http handlers.
This commit is contained in:
parent
77c1163591
commit
d32cacf1da
2 changed files with 37 additions and 29 deletions
|
@ -37,7 +37,7 @@ http {
|
|||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
'' close;
|
||||
}
|
||||
|
||||
# include /etc/nginx/sites-enabled/*;
|
||||
|
@ -60,6 +60,8 @@ http {
|
|||
|
||||
etag off;
|
||||
|
||||
root /home/penpot/penpot/frontend/resources/public;
|
||||
|
||||
location @handle_redirect {
|
||||
set $redirect_uri "$upstream_http_location";
|
||||
set $redirect_host "$upstream_http_x_host";
|
||||
|
@ -90,7 +92,7 @@ http {
|
|||
location /internal/assets {
|
||||
internal;
|
||||
alias /home/penpot/penpot/backend/resources/public/assets;
|
||||
add_header x-accel-redirect "$upstream_http_x_accel_redirect";
|
||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
||||
}
|
||||
|
||||
location /api {
|
||||
|
@ -114,7 +116,6 @@ http {
|
|||
}
|
||||
|
||||
location / {
|
||||
root /home/penpot/penpot/frontend/resources/public;
|
||||
add_header Cache-Control "no-cache, max-age=0";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue