1 Star 5 Fork 2

os4us/vue-element-frontend-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
demo.dev.opengalaxy.com.conf 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
laoseng 提交于 2019-09-20 00:27 . init 项目构建fist
upstream backend{
server 127.0.0.1:8004;
}
upstream frontend{
server 127.0.0.1:9527;
}
server {
listen 80;
server_name demo.dev.opengalaxy.com;
location = / {
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_pass http://frontend;
#include uwsgi_params;
#uwsgi_connect_timeout 30;
#uwsgi_pass yun;
}
location = /app.js {
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_pass http://frontend;
#include uwsgi_params;
#uwsgi_connect_timeout 30;
#uwsgi_pass yun;
}
location / {
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_pass http://backend;
#include uwsgi_params;
#uwsgi_connect_timeout 30;
#uwsgi_pass yun;
}
access_log /data/logs/demo.dev.opengalaxy.com.log;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hustytang/vue-element-frontend-backend.git
git@gitee.com:hustytang/vue-element-frontend-backend.git
hustytang
vue-element-frontend-backend
vue-element-frontend-backend
master

搜索帮助