1 Star 0 Fork 23

江鸟鸿/fastAPI-vue

forked from zy1234500/fastAPI-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx.conf.example 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
John 提交于 2022-11-22 01:16 . sql and README
upstream fastapi-backend {
server 127.0.0.1:8100 weight=20 max_fails=200 fail_timeout=20s;
server 127.0.0.1:8101 weight=20 max_fails=200 fail_timeout=20s;
}
server {
listen 80;
server_name localhost;
client_max_body_size 5m;
error_log /home/ubuntu/log/nginx/fastapi-backend.error.log;
access_log /home/ubuntu/log/nginx/fastapi-backend.access.log;
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_set_header X-User-Agent $http_user_agent;
proxy_pass http://fastapi-backend;
}
}
server {
listen 80;
server_name localhost;
client_max_body_size 5m;
error_log /home/ubuntu/log/nginx/fastapi-frontend.error.log;
access_log /home/ubuntu/log/nginx/fastapi-frontend.access.log;
location / {
root /home/ubuntu/opt/fastAPI-vue/frontend/dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hwzlikewyh/fastAPI-vue.git
git@gitee.com:hwzlikewyh/fastAPI-vue.git
hwzlikewyh
fastAPI-vue
fastAPI-vue
main

搜索帮助