- tasks/ldap.yml keeps cn=Harmony (harmony@eom.dev): password from Vault, in Harmony Users, Postfix Users and Dovecot Users. GoTrue sends as it, and it is an instance admin alongside eric@eom.dev. - theme.js hides the e-mail/password form; Register and /register (also in Caddy) go to https://www.eom.dev/members/. - The Dex button uses the square eom.dev icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
174 lines
7.7 KiB
YAML
174 lines
7.7 KiB
YAML
# SPDX-License-Identifier: MIT-0
|
|
---
|
|
harmony_name: harmony
|
|
harmony_namespace: harmony
|
|
harmony_create_namespace: true
|
|
|
|
# null uses normal kubeconfig discovery, including KUBECONFIG.
|
|
harmony_kubeconfig: null
|
|
harmony_kube_context: null
|
|
harmony_wait_timeout: 900
|
|
|
|
# Harmony release (https://github.com/y4my4my4m/harmony). The images, the
|
|
# database migrations (bootstrap Job) and the vendored files/Caddyfile all
|
|
# follow it; see "Upgrading" in the README before bumping.
|
|
harmony_version: 1.9.6
|
|
harmony_web_image: "ghcr.io/y4my4my4m/harmony-web:{{ harmony_version }}"
|
|
harmony_federation_image: "ghcr.io/y4my4my4m/harmony-federation:{{ harmony_version }}"
|
|
harmony_source_url: https://github.com/y4my4my4m/harmony.git
|
|
harmony_git_image: alpine/git:2.49.1
|
|
|
|
# Supabase images: Harmony 1.9.6's self-host/supabase-overrides.yml and the
|
|
# minimums in self-host/configure.sh (GOTRUE_MIN, STORAGE_MIN, REALTIME_MIN).
|
|
harmony_postgres_image: supabase/postgres:15.8.1.060
|
|
harmony_gotrue_image: supabase/gotrue:v2.197.0
|
|
harmony_postgrest_image: postgrest/postgrest:v14.18
|
|
harmony_realtime_image: supabase/realtime:v2.153.6
|
|
harmony_storage_image: supabase/storage-api:v1.90.0
|
|
harmony_imgproxy_image: darthsim/imgproxy:v4.0.22
|
|
harmony_kong_image: kong:3.9.4
|
|
harmony_redis_image: redis:7.4-alpine
|
|
harmony_caddy_image: caddy:2.10-alpine
|
|
harmony_nginx_image: nginx:1.31-alpine
|
|
harmony_livekit_image: livekit/livekit-server:v1.13.11
|
|
harmony_image_pull_policy: IfNotPresent
|
|
|
|
# Never change the domain after the first deploy: it is in every federated
|
|
# object (ActivityPub actors, posts) and in stored file URLs.
|
|
harmony_domain: harmony.eom.dev
|
|
harmony_api_domain: "api.{{ harmony_domain }}"
|
|
harmony_voice_domain: "voice.{{ harmony_domain }}"
|
|
harmony_instance_name: Harmony on eom.dev
|
|
# Contact for push services (VAPID subject) and GoTrue's sender address.
|
|
harmony_admin_email: harmony@eom.dev
|
|
|
|
harmony_ingress_class_name: nginx
|
|
harmony_tls_secret_name: "{{ harmony_name }}-tls"
|
|
harmony_ingress_annotations:
|
|
cert-manager.io/cluster-issuer: ca-issuer
|
|
nginx.ingress.kubernetes.io/proxy-body-size: 50m
|
|
# Realtime and LiveKit signalling are long-lived WebSockets.
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
|
|
|
|
# Largest upload storage-api accepts, in bytes (FILE_SIZE_LIMIT).
|
|
harmony_file_size_limit: 52428800
|
|
|
|
harmony_storage_class: nfs-client
|
|
harmony_db_storage_size: 64Gi
|
|
harmony_db_config_storage_size: 16Mi
|
|
harmony_files_storage_size: 256Gi
|
|
harmony_redis_storage_size: 2Gi
|
|
harmony_media_cache_storage_size: 4Gi
|
|
|
|
# --- Sign-in ---------------------------------------------------------------
|
|
# Dex is the only way in: GoTrue's e-mail/password sign-in and sign-up are off
|
|
# (harmony_email_login: false). Dex admits only members of the Harmony Users
|
|
# LDAP group (its "harmony" connector); each gets a Harmony account on first
|
|
# sign-in. Required (Vault): the client secret, shared with
|
|
# the "harmony" client in ericomeehan.dex/playbooks/deploy-eom.yml.
|
|
# Callback: https://<harmony_api_domain>/auth/v1/callback
|
|
harmony_oidc_issuer: https://dex.eom.dev/
|
|
harmony_oidc_client_id: harmony
|
|
harmony_oidc_client_secret: ""
|
|
# GoTrue custom provider id; the identities are stored as custom:<id>.
|
|
harmony_oidc_provider_id: dex
|
|
harmony_oidc_name: eom.dev account
|
|
# Square: the button draws it at 20x20.
|
|
harmony_oidc_icon: https://www.eom.dev/static/favicon.svg
|
|
harmony_oidc_scopes: [openid, email, profile]
|
|
harmony_email_login: false
|
|
# E-mail addresses (as Dex sends them) whose accounts are made instance
|
|
# admins. Applied on every run once the person has signed in once. The
|
|
# service's own LDAP account (uid harmony, in Harmony Users) is its admin.
|
|
harmony_admin_emails:
|
|
- harmony@eom.dev
|
|
- eric@eom.dev
|
|
# There is no local sign-up: "Register" and /register go here.
|
|
harmony_signup_url: https://www.eom.dev/members/
|
|
|
|
# --- Mail --------------------------------------------------------------------
|
|
# postfix.eom.dev as the service's own LDAP account (uid harmony,
|
|
# cn=Harmony,ou=Harmony,ou=Services, in Postfix Users); SPOOF_PROTECTION needs
|
|
# the sender to be that account's address. Required (Vault): harmony_smtp_password.
|
|
harmony_smtp_host: postfix.eom.dev
|
|
harmony_smtp_port: 587
|
|
harmony_smtp_username: harmony
|
|
harmony_smtp_password: ""
|
|
harmony_smtp_sender: harmony@eom.dev
|
|
|
|
# --- Voice (LiveKit) -----------------------------------------------------------
|
|
# Signalling goes through the ingress at wss://<harmony_voice_domain>. Media
|
|
# needs 7881/tcp and 7882/udp forwarded from the router to the LoadBalancer IP
|
|
# below; LiveKit finds the public address with STUN (use_external_ip).
|
|
harmony_voice_enabled: true
|
|
harmony_livekit_load_balancer_ip: 192.168.1.177
|
|
harmony_livekit_tcp_port: 7881
|
|
harmony_livekit_udp_port: 7882
|
|
|
|
# --- Secrets -------------------------------------------------------------------
|
|
# Optional (Vault). Left empty, each is generated on the first run and kept in
|
|
# Secret/<harmony_name>; later runs reuse it. Never change the JWT secret or
|
|
# the Postgres password of a running instance from here: the database keeps
|
|
# its own copy of the passwords, and a new JWT secret signs everyone out.
|
|
harmony_jwt_secret: ""
|
|
harmony_postgres_password: ""
|
|
|
|
harmony_resources:
|
|
db: {requests: {cpu: 200m, memory: 512Mi}, limits: {memory: 4Gi}}
|
|
auth: {requests: {cpu: 20m, memory: 32Mi}, limits: {memory: 256Mi}}
|
|
rest: {requests: {cpu: 50m, memory: 64Mi}, limits: {memory: 512Mi}}
|
|
realtime: {requests: {cpu: 100m, memory: 256Mi}, limits: {memory: 2Gi}}
|
|
storage: {requests: {cpu: 50m, memory: 128Mi}, limits: {memory: 1Gi}}
|
|
imgproxy: {requests: {cpu: 50m, memory: 128Mi}, limits: {memory: 1Gi}}
|
|
kong: {requests: {cpu: 50m, memory: 256Mi}, limits: {memory: 1Gi}}
|
|
web: {requests: {cpu: 10m, memory: 16Mi}, limits: {memory: 128Mi}}
|
|
federation: {requests: {cpu: 100m, memory: 256Mi}, limits: {memory: 1536Mi}}
|
|
redis: {requests: {cpu: 20m, memory: 64Mi}, limits: {memory: 512Mi}}
|
|
media_cache: {requests: {cpu: 10m, memory: 16Mi}, limits: {memory: 128Mi}}
|
|
caddy: {requests: {cpu: 20m, memory: 32Mi}, limits: {memory: 256Mi}}
|
|
livekit: {requests: {cpu: 200m, memory: 256Mi}, limits: {memory: 2Gi}}
|
|
|
|
# Keep off the node that runs the ingress controller, like the other services.
|
|
harmony_affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- topologyKey: kubernetes.io/hostname
|
|
namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: ingress-nginx
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: controller
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
# Cluster DNS Service IP, for nginx's resolver in the media cache.
|
|
harmony_cluster_dns: 10.96.0.10
|
|
|
|
# files/theme/ entries mounted into the web container at /eom/ (theme.sh is the
|
|
# entrypoint hook that links them from index.html).
|
|
harmony_theme_files: [catppuccin.css, theme.sh]
|
|
|
|
# Where tasks/configure.yml reaches Kong. Empty: the Service's ClusterIP,
|
|
# which works when the play runs on a cluster node (alpha-control-plane).
|
|
harmony_admin_api_url: ""
|
|
|
|
# --- LDAP account ----------------------------------------------------------------
|
|
# The service's own account, kept by tasks/ldap.yml: created if missing, its
|
|
# password set to harmony_smtp_password (Vault: harmony_admin_password), and
|
|
# added to the groups below. Its Dex sign-in (Harmony Users) makes it admin.
|
|
harmony_ldap_manage: true
|
|
harmony_ldap_namespace: openldap
|
|
harmony_ldap_pod_selector: app=openldap
|
|
harmony_ldap_base_dn: dc=eom,dc=dev
|
|
harmony_ldap_account:
|
|
cn: Harmony
|
|
ou: ou=Harmony,ou=Services,dc=eom,dc=dev
|
|
uid: harmony
|
|
mail: harmony@eom.dev
|
|
gid_number: 501
|
|
groups:
|
|
- cn=Harmony Users,ou=Harmony,ou=Services,dc=eom,dc=dev
|
|
- cn=Postfix Users,ou=Postfix,ou=Services,dc=eom,dc=dev
|
|
- cn=Dovecot Users,ou=Dovecot,ou=Services,dc=eom,dc=dev
|