apiVersion: v1 kind: ConfigMap metadata: name: piefed-config namespace: piefed-application data: # Flask Configuration SERVER_NAME: piefed.keyboardvagabond.com FLASK_APP: pyfedi.py FLASK_ENV: production # HTTPS Configuration for Cloudflare tunnels PREFERRED_URL_SCHEME: https SESSION_COOKIE_SECURE: "true" SESSION_COOKIE_HTTPONLY: "true" SESSION_COOKIE_SAMESITE: Lax # Redis Configuration (non-sensitive) CACHE_TYPE: RedisCache REDIS_HOST: redis-ha-haproxy.redis-system.svc.cluster.local REDIS_PORT: "6379" CACHE_REDIS_DB: "1" # S3 Storage Configuration (non-sensitive) S3_ENABLED: "true" S3_BUCKET: piefed-bucket S3_REGION: eu-central-003 S3_ENDPOINT: S3_PUBLIC_URL: pfm.keyboardvagabond.com # SMTP Configuration (non-sensitive) MAIL_SERVER: MAIL_PORT: "587" MAIL_USERNAME: piefed@mail.keyboardvagabond.com MAIL_USE_TLS: "true" MAIL_DEFAULT_SENDER: piefed@mail.keyboardvagabond.com # PieFed Feature Flags FULL_AP_CONTEXT: "0" ENABLE_ALPHA_API: "true" CORS_ALLOW_ORIGIN: '*' # Spicy algorithm configuration SPICY_UNDER_10: "2.5" SPICY_UNDER_30: "1.85" SPICY_UNDER_60: "1.25" # Image Processing Configuration MEDIA_IMAGE_MAX_DIMENSION: "2000" MEDIA_IMAGE_FORMAT: "" MEDIA_IMAGE_QUALITY: "90" MEDIA_IMAGE_MEDIUM_FORMAT: JPEG MEDIA_IMAGE_MEDIUM_QUALITY: "90" MEDIA_IMAGE_THUMBNAIL_FORMAT: WEBP MEDIA_IMAGE_THUMBNAIL_QUALITY: "93" # Admin Configuration (non-sensitive) PIEFED_ADMIN_EMAIL: admin@mail.keyboardvagabond.com # Database Connection Pool Configuration (PieFed uses these env vars) # These are defaults for web pods; workers override with lower values DB_POOL_SIZE: "10" # Reduced from 20 (per previous investigation) DB_MAX_OVERFLOW: "20" # Reduced from 40 DB_POOL_RECYCLE: "3600" # Recycle connections after 1 hour DB_POOL_PRE_PING: "true" # Verify connections before use