Adding configuration for k8s

This commit is contained in:
Ketan Patel committed 2026-04-16 20:27:35 -04:00
1 parent e30c2d8a93
commit 72493764f1
6 files changed
+34 -34

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
apiVersion: v1
kind: Secret
metadata:
name: apcupsd-client-secret
namespace: apcupsd
labels:
app.kubernetes.io/name: apcupsd-client
app.kubernetes.io/part-of: apcupsd-client
type: Opaque
stringData:
# Auth (required in production)
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(32))"
SESSION_SECRET: ""
ADMIN_USERNAME: "admin"
# Generate with: python -c "from passlib.hash import argon2; print(argon2.hash('yourpassword'))"
ADMIN_PASSWORD_HASH: ""
SESSION_MAX_AGE_SECONDS: "1209600"
TRUST_PROXY: "false"
# Redis
REDIS_URL: "redis://redis:6379/0"
# SMTP (optional)
SMTP_PASSWORD: ""
# Network
ALLOW_PRIVATE_IPS: "true"
# Observability
LOG_LEVEL: "INFO"
RATE_LIMIT_ENABLED: "true"
# Locale
TZ: "UTC"
# Legacy migration (unused unless /config is mounted)
UPS_CONFIG_PATH: "/config/ups.yaml"