mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-07 09:44:03 +08:00
* 后台管理员登录失败次数设置为10次 * 优化代码 * 后台缓存接口新增权限控制 * 移除redis关键字 * Merge branch 'dev' into dev-cache * 优化静态资源访问不存在抛出异常 * 删除redis相关内容 * 移除compose.yml中redis和minio的配置 * changelog * 后台 s3配置 * 后台 s3配置 * 云存储:移除minio;新增阿里云oss,腾讯云cos * 内存缓存替换redis缓存
89 lines
1.9 KiB
Nginx Configuration File
89 lines
1.9 KiB
Nginx Configuration File
client_max_body_size 50m;
|
|
|
|
server {
|
|
listen 9700;
|
|
server_name _;
|
|
root /app/pc;
|
|
index index.html;
|
|
|
|
location / {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://127.0.0.1:9898/;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 9800;
|
|
server_name _;
|
|
root /app/pc;
|
|
index index.html;
|
|
|
|
gzip on;
|
|
gzip_static on;
|
|
gzip_buffers 4 16k;
|
|
gzip_http_version 1.1;
|
|
gzip_comp_level 5;
|
|
gzip_types text/plain application/javascript text/css application/xml text/javascript;
|
|
gzip_vary on;
|
|
|
|
location /api/ {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://127.0.0.1:9898/;
|
|
}
|
|
|
|
location ~* ^/(?![api].*) {
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 9801;
|
|
server_name _;
|
|
root /app/h5;
|
|
index index.html;
|
|
|
|
gzip on;
|
|
gzip_static on;
|
|
gzip_buffers 4 16k;
|
|
gzip_http_version 1.1;
|
|
gzip_comp_level 5;
|
|
gzip_types text/plain application/javascript text/css application/xml text/javascript;
|
|
gzip_vary on;
|
|
|
|
location /api/ {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://127.0.0.1:9898/;
|
|
}
|
|
|
|
location ~* ^/(?![api].*) {
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 9900;
|
|
server_name _;
|
|
root /app/admin;
|
|
index index.html;
|
|
|
|
gzip on;
|
|
gzip_static on;
|
|
gzip_buffers 4 16k;
|
|
gzip_http_version 1.1;
|
|
gzip_comp_level 5;
|
|
gzip_types text/plain application/javascript text/css application/xml text/javascript;
|
|
gzip_vary on;
|
|
|
|
location /api/ {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_pass http://127.0.0.1:9898/;
|
|
}
|
|
|
|
location ~* ^/(?![api].*) {
|
|
try_files $uri /index.html;
|
|
}
|
|
} |