nginx-proxy-manager/backend/templates/_s3_host.conf
2020-04-09 19:31:01 -05:00

15 lines
598 B
Text

{% if s3_host == 1 or s3_host == true %}
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Authorization '';
proxy_set_header Host {{ forward_host }};
proxy_hide_header x-amz-id-2;
proxy_hide_header x-amz-request-id;
proxy_hide_header x-amz-meta-server-side-encryption;
proxy_hide_header x-amz-server-side-encryption;
proxy_hide_header Set-Cookie;
proxy_ignore_headers Set-Cookie;
proxy_intercept_errors on;
add_header Cache-Control max-age=31536000;
proxy_pass http://{{ forward_host }}/;
{% endif %}