Fix nginx templates (source of truth) + add reservedCount migration

The generated api.conf and services.conf we edited earlier were overwritten
at container startup by envsubst from *.template files. Fix the actual
templates:
- api.conf.template: X-Forwarded-For → $remote_addr, add limit_req
- services.conf.template: add frame-ancestors CSP after proxy_hide_header
- Add Prisma migration file for ticket_tiers.reserved_count

Bunker Admin
This commit is contained in:
2026-03-27 09:55:27 -06:00
parent b215cda018
commit 776aa6fbac
3 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
-- AlterTable: Add reserved_count for ticket overselling prevention
-- Tracks pending Stripe checkout sessions to prevent concurrent overselling
ALTER TABLE "ticket_tiers" ADD COLUMN "reserved_count" INTEGER NOT NULL DEFAULT 0;