Skip to content

Instantly share code, notes, and snippets.

@gazben
Created April 3, 2019 22:22
Show Gist options
  • Select an option

  • Save gazben/a2cd845a8eb5e68daff1766ae6d0e18e to your computer and use it in GitHub Desktop.

Select an option

Save gazben/a2cd845a8eb5e68daff1766ae6d0e18e to your computer and use it in GitHub Desktop.
Minio nginx static site reverse proxy
server {
error_page 400 401 402 403 404 405 500 501 502 503 504 @index;
proxy_intercept_errors on;
location = / {
proxy_buffering off;
index index.html index.htm;
proxy_set_header Host $http_host;
index /index.html;
proxy_pass http://minio:9000/$http_host/index.html;
}
location / {
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_pass http://minio:9000/$http_host$request_uri;
}
location @index {
proxy_pass http://minio:9000/$http_host/index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment