fix(deploy): replace PDA H5 containers with static hosting
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Merge into the existing site's server block; preserve TLS and panel includes.
|
||||
# Render only PDA_SITE_ROOT and PDA_GATEWAY_ORIGIN (see README).
|
||||
# Replace existing root/index and matching locations; do not append duplicates.
|
||||
root ${PDA_SITE_ROOT};
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
add_header Cache-Control "no-store" always;
|
||||
}
|
||||
|
||||
location ^~ /gateway-api/ {
|
||||
proxy_pass ${PDA_GATEWAY_ORIGIN}/api/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
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;
|
||||
client_max_body_size 55m;
|
||||
}
|
||||
Reference in New Issue
Block a user