| 1 | user nginx;
|
|---|
| 2 | worker_processes auto;
|
|---|
| 3 |
|
|---|
| 4 | error_log /var/log/nginx/error.log debug;
|
|---|
| 5 | pid /var/run/nginx.pid;
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 | events {
|
|---|
| 9 | worker_connections 1024;
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | http {
|
|---|
| 14 | include /etc/nginx/mime.types;
|
|---|
| 15 | default_type application/octet-stream;
|
|---|
| 16 |
|
|---|
| 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|---|
| 18 | '$status $body_bytes_sent "$http_referer" '
|
|---|
| 19 | '"$http_user_agent" "$http_x_forwarded_for"';
|
|---|
| 20 |
|
|---|
| 21 | access_log /var/log/nginx/access.log main;
|
|---|
| 22 |
|
|---|
| 23 | sendfile on;
|
|---|
| 24 | client_max_body_size 0;
|
|---|
| 25 | proxy_max_temp_file_size 3048m;
|
|---|
| 26 |
|
|---|
| 27 | keepalive_timeout 3800;
|
|---|
| 28 | proxy_connect_timeout 3600;
|
|---|
| 29 | proxy_send_timeout 3600;
|
|---|
| 30 | proxy_read_timeout 3600;
|
|---|
| 31 | send_timeout 3600;
|
|---|
| 32 |
|
|---|
| 33 | proxy_headers_hash_max_size 16;
|
|---|
| 34 | proxy_headers_hash_bucket_size 64;
|
|---|
| 35 | variables_hash_max_size 256;
|
|---|
| 36 | variables_hash_bucket_size 64;
|
|---|
| 37 | server_names_hash_max_size 1152;
|
|---|
| 38 | server_names_hash_bucket_size 128;
|
|---|
| 39 | server {
|
|---|
| 40 | server_name redacted;
|
|---|
| 41 | listen 8080;
|
|---|
| 42 |
|
|---|
| 43 | port_in_redirect off;
|
|---|
| 44 | proxy_max_temp_file_size 2048m;
|
|---|
| 45 |
|
|---|
| 46 | location / {
|
|---|
| 47 |
|
|---|
| 48 | set $backend http://redacted:8080;
|
|---|
| 49 | proxy_pass $backend;
|
|---|
| 50 | proxy_redirect http://redacted:8080 http://redacted;
|
|---|
| 51 | proxy_set_header Host redacted;
|
|---|
| 52 |
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | }
|
|---|
| 57 | resolver redacted:53;
|
|---|
| 58 | } |
|---|