Created
August 16, 2019 02:23
-
-
Save lesstif/3b8a12094f9865709953fbb0bd148366 to your computer and use it in GitHub Desktop.
setup nginx proxy with minio server
This file contains 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 { | |
listen 80; | |
server_name minio.example.com; | |
# To allow special characters in headers | |
ignore_invalid_headers off; | |
# Allow any size file to be uploaded. | |
# Set to a value such as 1000m; to restrict file size to a specific value | |
client_max_body_size 0; | |
# To disable buffering | |
proxy_buffering off; | |
location / { | |
proxy_http_version 1.1; | |
proxy_set_header Host $http_host; | |
# proxy_ssl_session_reuse on; # enable this if you are internally connecting over SSL | |
proxy_read_timeout 15m; # Default value is 60s which is not sufficient for MinIO. | |
proxy_send_timeout 15m; # Default value is 60s which is not sufficient for MinIO. | |
proxy_request_buffering off; # Disable any internal request bufferring. | |
proxy_pass http://localhost:9000; | |
## health_check is nginx pro feature. | |
health_check uri=/minio/health/ready; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment