github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/.github/workflows/multipart/nginx-site2.conf (about)

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