blob: 7057dbd0cbf80eca8fba48eb2070f54391e35598 [file] [log] [blame]
22301102b1fd8fd2025-06-05 18:02:21 +08001server {
2 listen 80;
3 server_name team12.10813352.xyz; # 替换为你的域名
4
22301102686bdbd2025-06-05 18:02:21 +08005 location /api/ {
223011023be803e2025-06-05 18:02:21 +08006 proxy_pass http://localhost:8080;
22301102b1fd8fd2025-06-05 18:02:21 +08007 proxy_set_header Host $host;
8 proxy_set_header X-Real-IP $remote_addr;
9 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2230110278a34162025-06-05 18:02:21 +080010
11 # 长连接支持
12 proxy_http_version 1.1;
13 proxy_set_header Connection "";
14
15 # 超时设置
16 proxy_connect_timeout 60s;
17 proxy_send_timeout 60s;
18 proxy_read_timeout 60s;
22301102b1fd8fd2025-06-05 18:02:21 +080019 }
20}