|
|
events {
|
|
|
worker_connections 1024;
|
|
|
}
|
|
|
|
|
|
http {
|
|
|
server {
|
|
|
listen 7860;
|
|
|
client_max_body_size 150M;
|
|
|
|
|
|
|
|
|
location / {
|
|
|
proxy_pass http://localhost:9000;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
proxy_read_timeout 86400;
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
proxy_set_header Request-Path $request_uri;
|
|
|
}
|
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
proxy_pass http://localhost:8000/;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
}
|
|
|
}
|
|
|
} |