apiVersion: v1 kind: ConfigMap metadata: name: rebours-config namespace: rebours data: NODE_ENV: "production" SANITY_PROJECT_ID: "y821x5qu" SANITY_DATASET: "production" DOMAIN: "https://rebours.studio" FASTIFY_PORT: "3000" ASTRO_PORT: "4321" proxy.conf: | server { listen 80; server_name _; client_max_body_size 10M; # API → Fastify location /api/ { proxy_pass http://rebours-api:3000; 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 https; } # Static assets from Astro client build (cached) location /_astro/ { proxy_pass http://rebours-ssr:4321; proxy_set_header Host $host; add_header Cache-Control "public, max-age=31536000, immutable"; } # SSR → Astro location / { proxy_pass http://rebours-ssr:4321; 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 https; } }