新增s4的jenkins和nginx

This commit is contained in:
dxin
2025-11-04 14:43:52 +08:00
parent e37e8dc9f2
commit 210356d816
5 changed files with 533 additions and 3 deletions

View File

@@ -6,10 +6,10 @@ log_format apex_log '客户端IP: $remote_addr | 用户: $remote_user | 时间:
server {
listen 443 ssl;
server_name 127.0.0.1;
server_name apex.jennie.im;
ssl_certificate /data/tengine/conf/certificate/apex.deeplink.media_bundle.crt;
ssl_certificate_key /data/tengine/conf/certificate/apex.deeplink.media.key;
ssl_certificate /data/tengine/conf/certificate/jennie.im.crt;
ssl_certificate_key /data/tengine/conf/certificate/jennie.im.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
@@ -30,6 +30,26 @@ server {
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
location /api/ {
proxy_pass http://127.0.0.1:8200;
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_buffering off;
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE' always;
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,X-Requested-With,Accept,Origin' always;
if ($request_method = OPTIONS ) {
return 204;
}
}
# 错误页面
error_page 500 502 503 504 /50x.html;
location = /50x.html {