tasks/ldap.yml keeps cn=Funkwhale (password from Vault, in Funkwhale Users, Postfix Users and Dovecot Users). Mail goes out as funkwhale@eom.dev instead of listmonk's news account, and the account is a Dex superuser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
197 lines
7.3 KiB
YAML
197 lines
7.3 KiB
YAML
# SPDX-License-Identifier: MIT-0
|
|
---
|
|
funkwhale_name: funkwhale
|
|
funkwhale_namespace: funkwhale
|
|
funkwhale_create_namespace: true
|
|
|
|
# null uses normal kubeconfig discovery, including KUBECONFIG.
|
|
funkwhale_kubeconfig: null
|
|
funkwhale_kube_context: null
|
|
funkwhale_wait_timeout: 900
|
|
|
|
# Skip 2.0.0-2.0.3 (migration bug); see the 2.0.0 release notes before
|
|
# upgrading an existing 1.x pod.
|
|
funkwhale_version: 2.0.13
|
|
funkwhale_api_image: "docker.io/funkwhale/api:{{ funkwhale_version }}"
|
|
funkwhale_front_image: "docker.io/funkwhale/front:{{ funkwhale_version }}"
|
|
funkwhale_postgres_image: postgres:17.11-alpine
|
|
funkwhale_redis_image: redis:7.4-alpine
|
|
funkwhale_image_pull_policy: IfNotPresent
|
|
|
|
# Never change the hostname after the first deploy: it is baked into every
|
|
# federated object (actors, libraries, tracks).
|
|
funkwhale_host: funkwhale.eom.dev
|
|
funkwhale_ingress_class_name: nginx
|
|
funkwhale_max_upload_size: 1G
|
|
funkwhale_ingress_annotations:
|
|
cert-manager.io/cluster-issuer: ca-issuer
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "{{ funkwhale_max_upload_size }}"
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
funkwhale_tls_secret_name: "{{ funkwhale_name }}-tls"
|
|
|
|
funkwhale_storage_class: nfs-client
|
|
funkwhale_db_storage_size: 2Ti
|
|
# Uploads, covers and transcodes. Shared by api, worker and front.
|
|
funkwhale_media_storage_size: 2Ti
|
|
# Files imported in place (funkwhale-manage import_files --in-place).
|
|
funkwhale_music_storage_size: 2Ti
|
|
funkwhale_static_storage_size: 1Gi
|
|
|
|
funkwhale_web_workers: 2
|
|
funkwhale_celery_concurrency: 2
|
|
|
|
# Optional (Vault). Left empty, each is generated on the first run and kept
|
|
# in Secret/<name>; later runs reuse it. The database password is only read
|
|
# when the volume is first initialised; change it in Postgres first.
|
|
funkwhale_django_secret_key: ""
|
|
funkwhale_db_password: ""
|
|
# Break-glass superuser for when Dex is down: /login?local=1. Only kept
|
|
# while funkwhale_oidc_local_login is true. ("admin",
|
|
# "root" and similar names are on Funkwhale's reserved-username list.)
|
|
funkwhale_admin_user: breakglass
|
|
funkwhale_admin_email: funkwhale@eom.dev
|
|
funkwhale_admin_password: ""
|
|
|
|
# Mail goes out through postfix.eom.dev as an LDAP account in "Postfix Users",
|
|
# the same pattern Gitea, Nextcloud, PeerTube and listmonk use.
|
|
funkwhale_smtp_host: postfix.eom.dev
|
|
funkwhale_smtp_port: 587
|
|
# Required (Vault: funkwhale_admin_password). Funkwhale sends as its own LDAP
|
|
# account (uid funkwhale, kept by tasks/ldap.yml); SPOOF_PROTECTION needs the
|
|
# From address to belong to it.
|
|
funkwhale_smtp_username: funkwhale
|
|
funkwhale_smtp_password: ""
|
|
funkwhale_from_email: "eom.dev Music <funkwhale@eom.dev>"
|
|
|
|
# Log in with Dex through the funkwhale-oidc plugin
|
|
# (https://gitea.eom.dev/DevOps/funkwhale-oidc). Required (Vault): the client
|
|
# secret, shared with the "funkwhale" client in Dex. Each pod pip-installs it,
|
|
# with PyJWT, into an emptyDir at start-up.
|
|
funkwhale_oidc_enabled: true
|
|
funkwhale_oidc_plugin_version: v0.2.1
|
|
funkwhale_oidc_plugin_url: "https://gitea.eom.dev/DevOps/funkwhale-oidc/archive/{{ funkwhale_oidc_plugin_version }}.tar.gz"
|
|
funkwhale_oidc_server_url: https://dex.eom.dev/
|
|
funkwhale_oidc_client_id: funkwhale
|
|
funkwhale_oidc_client_secret: ""
|
|
# Callback: https://<host>/accounts/oidc/<provider_id>/login/callback/
|
|
funkwhale_oidc_provider_id: dex
|
|
funkwhale_oidc_name: eom.dev account
|
|
funkwhale_oidc_scopes: [openid, profile, email]
|
|
# /login goes straight to Dex, like listmonk; /login?local=1 shows the form.
|
|
funkwhale_oidc_auto_redirect: true
|
|
# false: Dex is the only way in. Password login, sign-up and password reset
|
|
# are refused by the server and hidden in the web app. If Dex is down, use
|
|
# kubectl exec ... funkwhale-manage in the API pod.
|
|
funkwhale_oidc_local_login: false
|
|
# Every eom.dev account Dex lets through gets a Funkwhale account.
|
|
funkwhale_oidc_signup: true
|
|
# LDAP e-mail addresses are managed by eom.dev, so trust them for linking.
|
|
funkwhale_oidc_link_by_email: true
|
|
# Made superuser on login through Dex. "funkwhale" is the service's own
|
|
# LDAP account (funkwhale@eom.dev, in Funkwhale Users).
|
|
funkwhale_oidc_admin_users:
|
|
- funkwhale
|
|
- eric
|
|
funkwhale_oidc_admin_groups: []
|
|
|
|
# Instance settings (Funkwhale "dynamic preferences"), written on every run.
|
|
# Anything not listed here stays under the admin UI's control.
|
|
funkwhale_preferences:
|
|
instance__name: eom.dev Music
|
|
instance__short_description: Music and podcasts from the eom.dev community.
|
|
instance__long_description: |-
|
|
The eom.dev community's corner of the fediverse for music and podcasts.
|
|
|
|
Anyone can listen here. Members sign in with their [eom.dev account](https://www.eom.dev/members/) to upload, follow channels and make playlists, and can follow and be followed from Mastodon and other Funkwhale pods.
|
|
# Anyone can browse and listen to public content without an account.
|
|
common__api_authentication_required: false
|
|
# Accounts come from Dex; the local sign-up form stays closed.
|
|
users__registration_enabled: false
|
|
moderation__signup_approval_enabled: false
|
|
# The Catppuccin theme is a stylesheet linked from index.html
|
|
# (files/catppuccin.css), so it applies before these settings load.
|
|
ui__custom_css: ""
|
|
ui__theme_primary_color: ""
|
|
ui__theme_accent_color: ""
|
|
# Merged over funkwhale_preferences.
|
|
funkwhale_preferences_extra: {}
|
|
|
|
funkwhale_api_resources:
|
|
requests:
|
|
ephemeral-storage: 1Gi
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
memory: 2Gi
|
|
funkwhale_worker_resources:
|
|
requests:
|
|
ephemeral-storage: 1Gi
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
memory: 2Gi
|
|
funkwhale_beat_resources:
|
|
requests:
|
|
ephemeral-storage: 1Gi
|
|
cpu: 20m
|
|
memory: 192Mi
|
|
limits:
|
|
memory: 512Mi
|
|
funkwhale_front_resources:
|
|
requests:
|
|
ephemeral-storage: 256Mi
|
|
cpu: 20m
|
|
memory: 32Mi
|
|
limits:
|
|
memory: 256Mi
|
|
funkwhale_postgres_resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
memory: 1Gi
|
|
funkwhale_redis_resources:
|
|
requests:
|
|
cpu: 20m
|
|
memory: 64Mi
|
|
limits:
|
|
memory: 256Mi
|
|
|
|
# Most nodes have a 15.6 GiB root disk with a few GiB free, and the api image
|
|
# is 1 GiB. Prefer one node for every Funkwhale pod so it is pulled once
|
|
# (the ephemeral-storage requests above keep them off nearly full nodes).
|
|
funkwhale_colocate: true
|
|
|
|
# Keep off the node that runs the ingress controller, like the other services.
|
|
funkwhale_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
|
|
|
|
# --- LDAP account ----------------------------------------------------------------
|
|
# The service's own account, kept by tasks/ldap.yml: created if missing, its
|
|
# password set to funkwhale_smtp_password (Vault: funkwhale_admin_password), and
|
|
# added to the groups below.
|
|
funkwhale_ldap_manage: true
|
|
funkwhale_ldap_namespace: openldap
|
|
funkwhale_ldap_pod_selector: app=openldap
|
|
funkwhale_ldap_base_dn: dc=eom,dc=dev
|
|
funkwhale_ldap_account:
|
|
cn: Funkwhale
|
|
ou: ou=Funkwhale,ou=Services,dc=eom,dc=dev
|
|
uid: funkwhale
|
|
mail: funkwhale@eom.dev
|
|
gid_number: 501
|
|
groups:
|
|
- cn=Funkwhale Users,ou=Funkwhale,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
|