blob: 9dac2b16804f352937a7dd16dd66b31ea63a1171 [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<<<<<<< HEAD
22301102b1fd8fd2025-06-05 18:02:21 +08006 location /api {
2230110278a34162025-06-05 18:02:21 +08007 proxy_pass http://localhost:12138/;
22301102686bdbd2025-06-05 18:02:21 +08008=======
9 location /api/ {
10 proxy_pass http://localhost:12138;
11>>>>>>> 0321331 (修改nginx.conf,修改映射路径)
22301102b1fd8fd2025-06-05 18:02:21 +080012 proxy_set_header Host $host;
13 proxy_set_header X-Real-IP $remote_addr;
14 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2230110278a34162025-06-05 18:02:21 +080015
16 # 长连接支持
17 proxy_http_version 1.1;
18 proxy_set_header Connection "";
19
20 # 超时设置
21 proxy_connect_timeout 60s;
22 proxy_send_timeout 60s;
23 proxy_read_timeout 60s;
22301102b1fd8fd2025-06-05 18:02:21 +080024 }
25}