apiVersion: v1
kind: ConfigMap
metadata:
  name: snauw-counter-config
  namespace: snauw-counter
  labels:
    app.kubernetes.io/name: snauw-counter
    app.kubernetes.io/component: config
data:
  FLASK_ENV: "production"
  DATABASE_URL: "sqlite:///app/data/snauw_counter.db"
  SECRET_KEY_FILE: "/etc/secrets/secret-key"
  PROMETHEUS_MULTIPROC_DIR: "/tmp/prometheus"

---
apiVersion: v1
kind: Secret
metadata:
  name: snauw-counter-secrets
  namespace: snauw-counter
  labels:
    app.kubernetes.io/name: snauw-counter
    app.kubernetes.io/component: config
type: Opaque
data:
  # Generate with: openssl rand -base64 32 | base64 -w 0
  secret-key: ""  # Add your base64 encoded secret key
