Accept Merge Request #22: (develop -> master)

Merge Request: add nginx config

Created By: @dvadmin-开发-李强
Accepted By: @dvadmin-开发-李强
URL: https://dvadmin-private.coding.net/p/code/d/dvadmin3/git/merge/22?initial=true
This commit is contained in:
dvadmin-开发-李强
2024-06-21 08:32:02 +08:00
committed by Coding
2 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
server {
listen 80;
server_name localhost;
client_max_body_size 100M;
# 配置前端静态文件目录
location / {
index index.html index.htm;
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
location ~ ^/api/ {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Nginx-Proxy true;
set_real_ip_from 0.0.0.0/0;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_connect_timeout 600s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
real_ip_header X-Forwarded-For;
rewrite ^/api/(.*)$ /$1 break; #重写
proxy_pass http://177.10.0.12:8000/; # 设置代理服务器的协议和地址
}
}

View File

@@ -24,7 +24,7 @@
<el-checkbox v-model="menu.isCheck">页面显示权限</el-checkbox>
<div class="pc-collapse-main">
<div class="pccm-item">
<div class="menu-form-alert"> 配置操作功能点权限 </div>
<div class="menu-form-alert"> 配置操作功能接口权限,配置数据权限点击小齿轮 </div>
<el-checkbox v-for="(btn, bIndex) in menu.btns" :key="bIndex" v-model="btn.isCheck"
:label="btn.value">
<div class="btn-item">