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:
chris 2026-05-29 06:47:06 -04:00
parent 7d5f74a79e
commit a49075b167
3 changed files with 4 additions and 6 deletions

View File

@ -8,6 +8,7 @@ services:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/well-known:/etc/nginx/well-known:ro
depends_on:
main-site:
condition: service_started

View File

@ -63,12 +63,8 @@ http {
# ── Apple Pay domain verification ────────────────────────────────────────
location ^~ /.well-known/ {
proxy_pass http://estore;
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;
alias /etc/nginx/well-known/;
try_files $uri =404;
}
# ── eStore: /shop and everything under it ────────────────────────────────

File diff suppressed because one or more lines are too long