mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 16:46:17 +02:00
✨ Ignore S3 object metadata and use our own content-type header
This commit is contained in:
parent
07601975ac
commit
a868840132
2 changed files with 6 additions and 3 deletions
|
@ -66,6 +66,7 @@ http {
|
|||
set $redirect_uri "$upstream_http_location";
|
||||
set $redirect_host "$upstream_http_x_host";
|
||||
set $redirect_cache_control "$upstream_http_cache_control";
|
||||
set $real_mtype "$upstream_http_x_mtype";
|
||||
|
||||
proxy_set_header Host "$redirect_host";
|
||||
proxy_hide_header etag;
|
||||
|
@ -75,9 +76,10 @@ http {
|
|||
proxy_hide_header x-amz-server-side-encryption;
|
||||
proxy_pass $redirect_uri;
|
||||
|
||||
#add_header x-internal-redirect "$redirect_uri";
|
||||
#add_header x-cache-control "$redirect_cache_control";
|
||||
#add_header cache-control "$redirect_cache_control";
|
||||
add_header x-internal-redirect "$redirect_uri";
|
||||
add_header x-cache-control "$redirect_cache_control";
|
||||
add_header cache-control "$redirect_cache_control";
|
||||
add_header content-type "$real_mtype";
|
||||
}
|
||||
|
||||
location /assets {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue