1 Star 0 Fork 94

yuanhaha01/chunyu-cms

forked from 淳渔CMS/chunyu-cms 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx.conf 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
老鹰 提交于 2023-08-16 18:27 . 修改配置
server {
listen 80;
server_name 你的用户端访问域名;
location / {
proxy_pass http://服务器IP:3000/;
}
location ~ \.mp4$ {
valid_referers blocked server_names ~\.yinchunyu\.com;
if ($invalid_referer) {
return 403;
}
root /chunyu-cms/Nest-server/public/upload/videos;
add_header Content-Disposition "attachment; filename=$uri";
}
location /server/ {
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://服务器IP:4000/;
}
}
server {
listen 80;
server_name 你的管理端访问域名;
location / {
root /chunyu-cms/Vue3-admin/dist;
index index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
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://服务器IP:4000/;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yuanhaha01/chunyu-cms.git
git@gitee.com:yuanhaha01/chunyu-cms.git
yuanhaha01
chunyu-cms
chunyu-cms
main

搜索帮助