1 Star 7 Fork 3

hanting / rust-admin2-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nginx.conf 904 Bytes
一键复制 编辑 原始数据 按行查看 历史
robin 提交于 2020-11-08 20:49 . 修改nginx配置
server {
listen 80;
# 把以下域名修改为你实际使用的域名
server_name admin.army.rs;
# 把以下路径修改为你本地的路径信息
root /home/an/web/hanting/rust-admin2-backend/public;
index index.html;
location /api/ {
# 把以下IP、端口修改为你实际使用的IP、端口
proxy_pass http://127.0.0.1:8092/;
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 HTTP_X_FORWARDED_FOR $remote_addr;
proxy_redirect default;
}
location ~* .(gif|jpg|jpeg|png|css|js|ico)$ {
expires 1h;
break;
}
#location ~ .*\.(shtm|shtml|html)?$ {
# ssi on;
# ssi_silent_errors on;
# ssi_types text/shtml;
#}
}
Rust
1
https://gitee.com/houhanting/rust-admin2-backend.git
git@gitee.com:houhanting/rust-admin2-backend.git
houhanting
rust-admin2-backend
rust-admin2-backend
master

搜索帮助