Fix Apple Pay verification file — serve directly from nginx
With basePath=/shop the Next.js app can't serve /.well-known/ at the domain root. Mount the file into the nginx container and serve it directly instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7d5f74a79e
commit
a49075b167
@ -8,6 +8,7 @@ services:
|
|||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
- ./nginx/well-known:/etc/nginx/well-known:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
main-site:
|
main-site:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|||||||
@ -63,12 +63,8 @@ http {
|
|||||||
|
|
||||||
# ── Apple Pay domain verification ────────────────────────────────────────
|
# ── Apple Pay domain verification ────────────────────────────────────────
|
||||||
location ^~ /.well-known/ {
|
location ^~ /.well-known/ {
|
||||||
proxy_pass http://estore;
|
alias /etc/nginx/well-known/;
|
||||||
proxy_http_version 1.1;
|
try_files $uri =404;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ── eStore: /shop and everything under it ────────────────────────────────
|
# ── eStore: /shop and everything under it ────────────────────────────────
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user