Skip to content

Instantly share code, notes, and snippets.

@lesstif
Created August 16, 2019 02:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesstif/3b8a12094f9865709953fbb0bd148366 to your computer and use it in GitHub Desktop.
Save lesstif/3b8a12094f9865709953fbb0bd148366 to your computer and use it in GitHub Desktop.
setup nginx proxy with minio server
##
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