36 lines
706 B
Plaintext
36 lines
706 B
Plaintext
events {
|
|
worker_connections 2024;
|
|
}
|
|
|
|
http {
|
|
proxy_read_timeout 600;
|
|
proxy_connect_timeout 600;
|
|
proxy_send_timeout 600;
|
|
|
|
include mime.types;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 8001;
|
|
|
|
client_max_body_size 5G;
|
|
|
|
location / {
|
|
root /www/page;
|
|
}
|
|
|
|
location /api {
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
}
|
|
}
|
|
}
|