1 Star 0 Fork 527

Simon/魔金多商户商城

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nginx 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
架构-小哥 提交于 2020-09-01 15:46 . 123
https://mojin.51wangshi.com/admin
https://mojin.51wangshi.com/store
https://mojin.51wangshi.com
--【静态部署】
server {
listen 8094;
server_name _;
root /app/amllplus/mojin/dist/;
index index.html;
try_files $uri $uri/ /index.html;
}
server {
listen 8095;
server_name _;
root /app/amllplus/mojin/store/;
index index.html;
try_files $uri $uri/ /index.html;
}
--【反向代理】
location /{
root /app/amllplus/mojin/h5/;
index index.html;
}
location /admin/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8094/;
}
location /store/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8095/;
}
location /api-web/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8091/;
}
location /api-admin/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8092/;
}
location /api-store/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mengtao0918/payshop.git
git@gitee.com:mengtao0918/payshop.git
mengtao0918
payshop
魔金多商户商城
master

搜索帮助