commit | b1fd8fd1345b1ae2f8d2d3121af8b342b37132e3 | [log] [tgz] |
---|---|---|
author | 22301102 <22301102@bjtu.edu.cn> | Thu Jun 05 18:02:21 2025 +0800 |
committer | 22301102 <22301102@bjtu.edu.cn> | Sat Jun 07 09:30:11 2025 +0800 |
tree | 842e788fedf49cacb0cabb9e1501ee1c2066c29f | |
parent | 974d9c7620b6f0c2332b9dfba2850b547da1fc9d [diff] [blame] |
添加nginx.conf Change-Id: I25368881b00c8aa2f502b6890416309eb79b161e
diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..c9ea645 --- /dev/null +++ b/nginx.conf
@@ -0,0 +1,11 @@ +server { + listen 80; + server_name team12.10813352.xyz; # 替换为你的域名 + + location /api { + proxy_pass http://localhost:12138; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } +} \ No newline at end of file