mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-26 15:02:44 +08:00
* 后台 使用许可页面 * 优化:移除API访问地址配置 * 后台、pc、h5 删除无用配置 * docker部署优化 * 2.0 networkMode=bridge * changelog * 学员端权限为空报错 * h5 我的页面请求优化 * 缓存查询 * 后台 学员列表报错、线上课-上架时间字段优化 * 后台、pc、h5 使用签名地址 * 学员端接口修改 * 后台、pc 使用签名地址 * 后台 使用签名地址 * 上传接口 * 上传接口 * 系统配置 * 线上课封面 * bucket由public改为private * 资源相关表实体及对象修改 * 统一数据库脚本
76 lines
1.6 KiB
Nginx Configuration File
76 lines
1.6 KiB
Nginx Configuration File
client_max_body_size 500m;
|
|
|
|
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;
|
|
}
|
|
} |