Serve Apple Pay verification file via nginx

Move domain association file to estore/public/.well-known/ so Next.js
serves it, and add a /.well-known/ location block in nginx so Apple's
servers can reach it at the domain root.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chris 2026-05-28 17:50:17 -04:00
parent 92ab3a5633
commit 7d5f74a79e
2 changed files with 11 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -61,6 +61,16 @@ http {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
# ── 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;
}
# ── eStore: /shop and everything under it ──────────────────────────────── # ── eStore: /shop and everything under it ────────────────────────────────
location ^~ /shop { location ^~ /shop {
proxy_pass http://estore; proxy_pass http://estore;