| worker_processes auto; |
| error_log /dev/stderr warn; |
| pid /tmp/nginx-outer.pid; |
|
|
| events { |
| worker_connections 1024; |
| } |
|
|
| http { |
| include /etc/nginx/mime.types; |
| default_type application/octet-stream; |
|
|
| log_format main '$remote_addr - [$time_local] "$request" $status $body_bytes_sent'; |
| access_log /dev/stdout main; |
|
|
| sendfile on; |
| keepalive_timeout 65; |
|
|
| map $http_upgrade $connection_upgrade { |
| default upgrade; |
| '' close; |
| } |
|
|
| client_body_temp_path /tmp/nginx-outer-client-body; |
| proxy_temp_path /tmp/nginx-outer-proxy; |
| fastcgi_temp_path /tmp/nginx-outer-fastcgi; |
| uwsgi_temp_path /tmp/nginx-outer-uwsgi; |
| scgi_temp_path /tmp/nginx-outer-scgi; |
|
|
| server { |
| listen 7860; |
|
|
| |
| |
| location /worldmonitor/ { |
| proxy_pass http://127.0.0.1:8080/; |
| proxy_http_version 1.1; |
| proxy_set_header Host $host; |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| proxy_set_header X-Forwarded-Proto $scheme; |
| proxy_buffering off; |
| proxy_read_timeout 120s; |
| proxy_send_timeout 120s; |
| } |
|
|
| |
| |
| location /api/ { |
| proxy_pass http://127.0.0.1:8080/api/; |
| proxy_http_version 1.1; |
| proxy_set_header Host $host; |
| proxy_read_timeout 120s; |
| } |
| location /assets/ { proxy_pass http://127.0.0.1:8080/assets/; } |
| location /data/ { proxy_pass http://127.0.0.1:8080/data/; } |
| location /textures/ { proxy_pass http://127.0.0.1:8080/textures/; } |
| location /map-styles/ { proxy_pass http://127.0.0.1:8080/map-styles/; } |
|
|
| |
| location / { |
| proxy_pass http://127.0.0.1:8000; |
| proxy_http_version 1.1; |
| proxy_set_header Host $host; |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| proxy_set_header X-Forwarded-Proto $scheme; |
| proxy_set_header Upgrade $http_upgrade; |
| proxy_set_header Connection $connection_upgrade; |
| proxy_buffering off; |
| proxy_read_timeout 300s; |
| proxy_send_timeout 300s; |
| } |
| } |
| } |
|
|