diff --git a/README.md b/README.md index 98a267b..59a0ac3 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ |------|------|------| | www.offerpai.com.cn | 10302 | OfferPie 前端 | | api.offerpai.com.cn | 10202 | OfferPie Java 后端 API | +| admin.offerpai.com.cn | 10062 | OfferPie 管理后台 Admin | | ai.offerpai.com.cn | 10502 | OfferPie Python AI 服务 | ### 测试环境 @@ -29,6 +30,7 @@ |------|------|------| | test.offerpai.com.cn | 10302 | OfferPie 前端 | | test-api.offerpai.com.cn | 10202 | OfferPie Java 后端 API | +| test-admin.offerpai.com.cn | 10062 | OfferPie 管理后台 Admin | | test-ai.offerpai.com.cn | 10502 | OfferPie Python AI 服务 | 未匹配的域名或 IP 访问返回 444(直接断开连接)。 diff --git a/nginx.conf b/nginx.conf index 8408f39..0cbe4e9 100644 --- a/nginx.conf +++ b/nginx.conf @@ -117,6 +117,29 @@ http { } } + # OfferPie 管理后台 Admin + # admin.offerpai.com.cn → 10062 + server { + listen 443 ssl; + http2 on; + server_name admin.offerpai.com.cn; + + ssl_certificate /etc/nginx/ssl/offerpai.com.cn.crt; + ssl_certificate_key /etc/nginx/ssl/offerpai.com.cn.key; + + location / { + proxy_pass http://172.17.0.1:10062; + 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; + } + } + # OfferPie Python AI 服务 # ai.offerpai.com.cn → 10502 server { diff --git a/nginx.test.conf b/nginx.test.conf index 872b0fd..298d895 100644 --- a/nginx.test.conf +++ b/nginx.test.conf @@ -117,6 +117,29 @@ http { } } + # OfferPie 管理后台 Admin(测试) + # test-admin.offerpai.com.cn → 10062 + server { + listen 443 ssl; + http2 on; + server_name test-admin.offerpai.com.cn; + + ssl_certificate /etc/nginx/ssl/offerpai.com.cn.crt; + ssl_certificate_key /etc/nginx/ssl/offerpai.com.cn.key; + + location / { + proxy_pass http://172.17.0.1:10062; + 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; + } + } + # OfferPie Python AI 服务(测试) # test-ai.offerpai.com.cn → 10502 server {