| worker_processes 1; |
| events { worker_connections 256; } |
|
|
| http { |
| include /etc/nginx/mime.types; |
| default_type application/octet-stream; |
| access_log off; |
|
|
| server { |
| listen 7860; |
|
|
| |
| location /stream { |
| proxy_pass http://127.0.0.1:5000/stream; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| proxy_buffering off; |
| proxy_cache off; |
| proxy_read_timeout 3600s; |
| chunked_transfer_encoding on; |
| } |
|
|
| |
| location /frontend/ { |
| proxy_pass http://127.0.0.1:5003/; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| sub_filter 'href="/' 'href="/frontend/'; |
| sub_filter 'action="/' 'action="/frontend/'; |
| sub_filter_once off; |
| proxy_redirect / /frontend/; |
| } |
|
|
| |
| location /fix/ { |
| proxy_pass http://127.0.0.1:5002/; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| |
| sub_filter 'href="/' 'href="/fix/'; |
| sub_filter 'action="/' 'action="/fix/'; |
| sub_filter_once off; |
| |
| proxy_redirect / /fix/; |
| } |
|
|
| |
| location /ch/stream { |
| proxy_pass http://127.0.0.1:5004/ch/stream; |
| proxy_set_header Host $host; |
| proxy_buffering off; |
| proxy_cache off; |
| proxy_read_timeout 3600s; |
| chunked_transfer_encoding on; |
| } |
|
|
| |
| location /ch/ { |
| proxy_pass http://127.0.0.1:5004/ch/; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| proxy_buffering off; |
| } |
|
|
| |
| location / { |
| proxy_pass http://127.0.0.1:5000; |
| proxy_set_header Host $host; |
| proxy_set_header X-Real-IP $remote_addr; |
| proxy_buffering off; |
| } |
| } |
| } |
|
|