数据核对、数据管理表格添加新显示字段,打印card添加新的信息显示
This commit is contained in:
88
nginx配置文件.txt
Normal file
88
nginx配置文件.txt
Normal file
@ -0,0 +1,88 @@
|
||||
server
|
||||
{
|
||||
listen 80;
|
||||
server_name www.workload.hrbnu.club;
|
||||
merge_slashes on; # 合并连续斜杠(默认开启,但显式声明更稳妥)
|
||||
index index.php index.html index.htm default.php default.htm default.html;
|
||||
root /www/wwwroot/EFC/dist/build;
|
||||
|
||||
#CERT-APPLY-CHECK--START
|
||||
# 用于SSL证书申请时的文件验证相关配置 -- 请勿删除
|
||||
include /www/server/panel/vhost/nginx/well-known/www.workload.hrbnu.club.conf;
|
||||
#CERT-APPLY-CHECK--END
|
||||
|
||||
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
|
||||
#error_page 404/404.html;
|
||||
#SSL-END
|
||||
|
||||
#ERROR-PAGE-START 错误页配置,可以注释、删除或修改
|
||||
error_page 404 /404.html;
|
||||
#error_page 502 /502.html;
|
||||
#ERROR-PAGE-END
|
||||
|
||||
#PHP-INFO-START PHP引用配置,可以注释或修改
|
||||
include enable-php-80.conf;
|
||||
#PHP-INFO-END
|
||||
|
||||
#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
|
||||
include /www/server/panel/vhost/rewrite/www.workload.hrbnu.club.conf;
|
||||
#REWRITE-END
|
||||
|
||||
#禁止访问的文件或目录
|
||||
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md)
|
||||
{
|
||||
return 404;
|
||||
}
|
||||
|
||||
# 处理 history 模式路由:所有请求 fallback 到 index.html
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
index index.html;
|
||||
}
|
||||
#一键申请SSL证书验证目录相关设置
|
||||
location ~ \.well-known{
|
||||
allow all;
|
||||
}
|
||||
|
||||
#禁止在证书验证目录放入敏感文件
|
||||
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
|
||||
{
|
||||
expires 30d;
|
||||
error_log /dev/null;
|
||||
access_log /dev/null;
|
||||
}
|
||||
|
||||
location ~ .*\.(js|css)?$
|
||||
{
|
||||
expires 12h;
|
||||
error_log /dev/null;
|
||||
access_log /dev/null;
|
||||
}
|
||||
# 代理后端API请求
|
||||
# 所有以/api/开头的请求都会被代理到后端服务
|
||||
location /api/ {
|
||||
# 后端服务地址
|
||||
proxy_pass http://43.138.83.20:10001;
|
||||
|
||||
# 代理相关设置
|
||||
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-Forwarded-Proto $scheme;
|
||||
|
||||
# 超时设置
|
||||
proxy_connect_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_read_timeout 300s;
|
||||
|
||||
# 允许客户端请求体大小
|
||||
client_max_body_size 10M;
|
||||
}
|
||||
access_log /www/wwwlogs/www.workload.hrbnu.club.log;
|
||||
error_log /www/wwwlogs/www.workload.hrbnu.club.error.log;
|
||||
}
|
||||
Reference in New Issue
Block a user