runxian -dukang ssl证书配置

This commit is contained in:
2026-07-07 22:53:18 +08:00
parent 8598704a49
commit c6af8480a4
2 changed files with 42 additions and 12 deletions
+21 -6
View File
@@ -62,18 +62,33 @@ server {
} }
location /user/ { location /user/ {
alias /opt/dukang-haoke/apps/h5-user/dist/; rewrite ^/user/(.*)$ /$1 break;
try_files $uri $uri/ index.html; proxy_pass http://127.0.0.1:8091;
proxy_http_version 1.1;
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;
} }
location /shop/ { location /shop/ {
alias /opt/dukang-haoke/apps/h5-shop/dist/; rewrite ^/shop/(.*)$ /$1 break;
try_files $uri $uri/ index.html; proxy_pass http://127.0.0.1:8092;
proxy_http_version 1.1;
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;
} }
location /partner/ { location /partner/ {
alias /opt/dukang-haoke/apps/h5-partner/dist/; rewrite ^/partner/(.*)$ /$1 break;
try_files $uri $uri/ index.html; proxy_pass http://127.0.0.1:8093;
proxy_http_version 1.1;
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;
} }
# 旧 C 端根路径书签(无 /user 前缀)→ /user/... # 旧 C 端根路径书签(无 /user 前缀)→ /user/...
+21 -6
View File
@@ -37,18 +37,33 @@ server {
} }
location /user/ { location /user/ {
alias /opt/dukang-haoke/apps/h5-user/dist/; rewrite ^/user/(.*)$ /$1 break;
try_files $uri $uri/ index.html; proxy_pass http://127.0.0.1:8091;
proxy_http_version 1.1;
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;
} }
location /shop/ { location /shop/ {
alias /opt/dukang-haoke/apps/h5-shop/dist/; rewrite ^/shop/(.*)$ /$1 break;
try_files $uri $uri/ index.html; proxy_pass http://127.0.0.1:8092;
proxy_http_version 1.1;
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;
} }
location /partner/ { location /partner/ {
alias /opt/dukang-haoke/apps/h5-partner/dist/; rewrite ^/partner/(.*)$ /$1 break;
try_files $uri $uri/ index.html; proxy_pass http://127.0.0.1:8093;
proxy_http_version 1.1;
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;
} }
location / { location / {