1 Star 0 Fork 260

刘敏/vue3-antd-admin

forked from buqiyuan/vue3-antdv-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
default.conf.template 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
buqiyuan 提交于 2022-11-28 09:56 . feat: support iframe page
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
absolute_redirect off; #取消绝对路径的重定向
sendfile on;
default_type application/octet-stream;
gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;
root /usr/share/nginx/html;
location / {
# same docker config
root /usr/share/nginx/html;
index index.html;
# support history mode
try_files $uri $uri/ /index.html;
}
# 后端服务
location ^~ /api/ {
proxy_pass http://nest-admin-server:$SERVER_PORT/; # 转发规则
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服务
location ^~ /ws-api/ {
proxy_pass http://nest-admin-server:$WS_PORT/;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/liu_minmin/vue3-antd-admin.git
git@gitee.com:liu_minmin/vue3-antd-admin.git
liu_minmin
vue3-antd-admin
vue3-antd-admin
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385