redaction (#1)
Add the redacted source file for demo purposes Reviewed-on: https://source.michaeldileo.org/michael_dileo/Keybard-Vagabond-Demo/pulls/1 Co-authored-by: Michael DiLeo <michael_dileo@proton.me> Co-committed-by: Michael DiLeo <michael_dileo@proton.me>
This commit was merged in pull request #1.
This commit is contained in:
56
manifests/applications/piefed/configmap.yaml
Normal file
56
manifests/applications/piefed/configmap.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
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: <REPLACE_WITH_S3_ENDPOINT>
|
||||
S3_PUBLIC_URL: pfm.keyboardvagabond.com
|
||||
# SMTP Configuration (non-sensitive)
|
||||
MAIL_SERVER: <YOUR_SMTP_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
|
||||
Reference in New Issue
Block a user