production configs, deployment configs and readme

This commit is contained in:
mikicvi
2025-09-28 13:35:08 +01:00
parent b95a2ab2e4
commit 429eebb68f
15 changed files with 1115 additions and 44 deletions
+40
View File
@@ -0,0 +1,40 @@
# Cloudflare Tunnel Configuration for LCC Table Tennis Booking
# Domain: lcc-tt-booking.mikicvi.com
# Save this as ~/.cloudflared/config.yml after setting up your tunnel
tunnel: <your-tunnel-id>
credentials-file: /home/pi/.cloudflared/<your-tunnel-id>.json
# Ingress rules
ingress:
# Main application
- hostname: lcc-tt-booking.mikicvi.com
service: http://localhost:3000
originRequest:
# Enable HTTP/2
httpHostHeader: lcc-tt-booking.mikicvi.com
# Connection settings
connectTimeout: 30s
tlsTimeout: 10s
# Health checks
proxyType: http
# Disable chunked encoding for better compatibility
disableChunkedEncoding: true
# Health check endpoint (optional, for monitoring)
- hostname: health.lcc-tt-booking.mikicvi.com
service: http://localhost:3000/api/health
# Catch-all rule (must be last)
- service: http_status:404
# Optional: Logging configuration
loglevel: info
transport-loglevel: warn
# Optional: Metrics
metrics: 0.0.0.0:2000
# Optional: Enable compression
compression: gzip