6 Star 37 Fork 28

TDUCK/tduck-report-front

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx.default.conf 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
smalljop 提交于 2024-04-09 22:52 . 完善功能
server {
listen 5173;
server_name localhost;
access_log /data/log/nginx/access.log main;
error_log /data/log/nginx/error.log;
# 静态资源
location / {
root /data/web;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
# 前端代理
location /tduck-api/{
proxy_pass http://tduckapi:8997/;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Credentials: true;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS,PUT,DELETE;
proxy_http_version 1.1;
# 连接延时
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
# IP 穿透
proxy_set_header Host $proxy_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# WebSocket 穿透
proxy_set_header Origin "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /file {
alias /application/static/upload/;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/TDuckApp/tduck-report-front.git
git@gitee.com:TDuckApp/tduck-report-front.git
TDuckApp
tduck-report-front
tduck-report-front
master

搜索帮助