fix: proxy favicon and apple touch icon from A site [deploy]
This commit is contained in:
1 parent
a307d40346
commit
552ccf088b
3 files changed
+30
No files matched your search
@@ -4,6 +4,10 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Swiss.iCapital</title>
|
<title>Swiss.iCapital</title>
|
||||||
|
<link rel="icon" href="/favicon.ico?v=20260930" sizes="any" />
|
||||||
|
<link rel="icon" type="image/png" href="/images/swiss-icapital/brand/aurora-mark-32.png?v=20260930" sizes="32x32" />
|
||||||
|
<link rel="icon" type="image/png" href="/images/swiss-icapital/brand/aurora-mark-192.png?v=20260930" sizes="192x192" />
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png?v=20260930" />
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
|
|||||||
+22
@@ -68,6 +68,28 @@ server {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /favicon.ico {
|
||||||
|
set $a_upstream __A_UPSTREAM__;
|
||||||
|
proxy_pass $a_upstream$request_uri;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_ssl_server_name on;
|
||||||
|
proxy_set_header Host __A_HOST__;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /apple-touch-icon.png {
|
||||||
|
set $a_upstream __A_UPSTREAM__;
|
||||||
|
proxy_pass $a_upstream$request_uri;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_ssl_server_name on;
|
||||||
|
proxy_set_header Host __A_HOST__;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
location /images/ {
|
location /images/ {
|
||||||
set $a_upstream __A_UPSTREAM__;
|
set $a_upstream __A_UPSTREAM__;
|
||||||
proxy_pass $a_upstream$request_uri;
|
proxy_pass $a_upstream$request_uri;
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ export default defineConfig({
|
|||||||
"/embed": aOrigin,
|
"/embed": aOrigin,
|
||||||
"/images": aOrigin,
|
"/images": aOrigin,
|
||||||
"/api/contact": aOrigin,
|
"/api/contact": aOrigin,
|
||||||
|
"/favicon.ico": aOrigin,
|
||||||
|
"/apple-touch-icon.png": aOrigin,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
preview: {
|
preview: {
|
||||||
@@ -19,6 +21,8 @@ export default defineConfig({
|
|||||||
"/embed": aOrigin,
|
"/embed": aOrigin,
|
||||||
"/images": aOrigin,
|
"/images": aOrigin,
|
||||||
"/api/contact": aOrigin,
|
"/api/contact": aOrigin,
|
||||||
|
"/favicon.ico": aOrigin,
|
||||||
|
"/apple-touch-icon.png": aOrigin,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user