Skip to content

Commit

Permalink
fix(deploy): forward s3 host header through nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Aug 25, 2024
1 parent ae35c5d commit c1f9a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ server {
# S3 bucket service
location /s3 {
rewrite ^/s3/(.*) /$1 break ;
proxy_pass ${S3_LOCAL_URL} ;
# More details on minio x nginx options at:
# https://min.io/docs/minio/linux/integrations/setup-nginx-proxy-with-minio.html
proxy_pass ${S3_LOCAL_URL} ;
proxy_set_header Host $http_host;
proxy_pass_request_headers off;
proxy_connect_timeout 300;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
Expand Down

0 comments on commit c1f9a35

Please sign in to comment.