storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/docs/orchestration/docker-compose/nginx.conf (about) 1 2 user nginx; 3 worker_processes auto; 4 5 error_log /var/log/nginx/error.log warn; 6 pid /var/run/nginx.pid; 7 8 9 events { 10 worker_connections 1024; 11 } 12 13 14 http { 15 include /etc/nginx/mime.types; 16 default_type application/octet-stream; 17 18 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 19 '$status $body_bytes_sent "$http_referer" ' 20 '"$http_user_agent" "$http_x_forwarded_for"'; 21 22 access_log /var/log/nginx/access.log main; 23 24 sendfile on; 25 #tcp_nopush on; 26 27 keepalive_timeout 65; 28 29 #gzip on; 30 31 # include /etc/nginx/conf.d/*.conf; 32 33 upstream minio { 34 server minio1:9000; 35 server minio2:9000; 36 server minio3:9000; 37 server minio4:9000; 38 } 39 40 server { 41 listen 9000; 42 listen [::]:9000; 43 server_name localhost; 44 45 # To allow special characters in headers 46 ignore_invalid_headers off; 47 # Allow any size file to be uploaded. 48 # Set to a value such as 1000m; to restrict file size to a specific value 49 client_max_body_size 0; 50 # To disable buffering 51 proxy_buffering off; 52 53 location / { 54 proxy_set_header Host $http_host; 55 proxy_set_header X-Real-IP $remote_addr; 56 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 57 proxy_set_header X-Forwarded-Proto $scheme; 58 59 proxy_connect_timeout 300; 60 # Default is HTTP/1, keepalive is only enabled in HTTP/1.1 61 proxy_http_version 1.1; 62 proxy_set_header Connection ""; 63 chunked_transfer_encoding off; 64 65 proxy_pass http://minio; 66 } 67 } 68 }