| worker_processes 1; |
| error_log /dev/stderr warn; |
| pid /tmp/nginx.pid; |
|
|
| events { |
| worker_connections 1024; |
| } |
|
|
| http { |
| access_log off; |
| |
| |
| client_body_temp_path /tmp/nginx_client; |
| proxy_temp_path /tmp/nginx_proxy; |
| fastcgi_temp_path /tmp/nginx_fastcgi; |
| uwsgi_temp_path /tmp/nginx_uwsgi; |
| scgi_temp_path /tmp/nginx_scgi; |
|
|
| server { |
| listen 8080; |
| server_name _; |
|
|
| |
| location /preset-creator { |
| proxy_pass http://127.0.0.1:8081/preset-creator; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| } |
|
|
| |
| location / { |
| proxy_pass http://127.0.0.1:7860; |
| proxy_http_version 1.1; |
| proxy_set_header Upgrade $http_upgrade; |
| proxy_set_header Connection "upgrade"; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| proxy_set_header X-Forwarded-Proto $scheme; |
| proxy_read_timeout 300s; |
| proxy_send_timeout 300s; |
| proxy_buffering off; |
| client_max_body_size 100M; |
| } |
| } |
| } |
|
|