feat: proxy embed assets to in-cluster project57 [deploy]
This commit is contained in:
1 parent
f717f1d481
commit
fe18e608dc
8 files changed
+67
-36
No files matched your search
+25
@@ -10,6 +10,31 @@ server {
|
||||
return 200 "ok";
|
||||
}
|
||||
|
||||
# A 站无公网域名:浏览器只访问 B 站,由 B 反代到集群内 project57
|
||||
location /embed/ {
|
||||
proxy_pass ${A_UPSTREAM}/embed/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /images/ {
|
||||
proxy_pass ${A_UPSTREAM}/images/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location = /api/contact {
|
||||
proxy_pass ${A_UPSTREAM}/api/contact;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user