Created
April 3, 2019 22:22
-
-
Save gazben/a2cd845a8eb5e68daff1766ae6d0e18e to your computer and use it in GitHub Desktop.
Minio nginx static site reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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