55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
# Cloudflare CDN Configuration
|
|
# This file contains example configuration for Cloudflare CDN integration
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cloudflare-config
|
|
namespace: veza-production
|
|
data:
|
|
# Cloudflare Zone ID
|
|
zone-id: "your-cloudflare-zone-id"
|
|
|
|
# Cloudflare API Token (stored in secret)
|
|
# api-token: stored in secret
|
|
|
|
# DNS settings
|
|
dns-auto-proxy: "true"
|
|
|
|
# Cache settings
|
|
cache-level: "aggressive"
|
|
browser-cache-ttl: "31536000" # 1 year
|
|
|
|
# Security settings
|
|
ssl-mode: "full"
|
|
min-tls-version: "1.2"
|
|
|
|
# Performance settings
|
|
auto-minify-js: "true"
|
|
auto-minify-css: "true"
|
|
auto-minify-html: "true"
|
|
brotli: "on"
|
|
|
|
# Page rules (example)
|
|
page-rules: |
|
|
# Cache static assets for 1 year
|
|
*veza.com/static/*
|
|
Cache Level: Cache Everything
|
|
Edge Cache TTL: 1 year
|
|
|
|
# Cache audio files for 30 days
|
|
*veza.com/audio/*
|
|
Cache Level: Cache Everything
|
|
Edge Cache TTL: 1 month
|
|
|
|
# Don't cache API endpoints
|
|
*veza.com/api/*
|
|
Cache Level: Bypass
|
|
|
|
---
|
|
# Note: Cloudflare API token should be stored in a secret
|
|
# kubectl create secret generic cloudflare-secrets \
|
|
# --from-literal=api-token=your-api-token \
|
|
# -n veza-production
|
|
|