Files
claudeandClaude Opus 5.5 99687ea231 Own LDAP account and mail, Harmony Users gate, Dex-only sign-in UI
- 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>
2026-11-10 17:44:29 -05:00

47 lines
1.7 KiB
Django/Jinja

{%- set labels = {'app.kubernetes.io/name': 'harmony', 'app.kubernetes.io/instance': harmony_name} -%}
# Supabase's database init scripts (docker/volumes/db/*.sql at the commit
# Harmony {{ harmony_version }} pins), mounted where the compose stack mounts them.
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ harmony_name }}-db-init
namespace: {{ harmony_namespace }}
labels: {{ labels | to_json }}
data:
{% for f in ['_supabase.sql', 'jwt.sql', 'logs.sql', 'pooler.sql', 'realtime.sql', 'roles.sql', 'webhooks.sql'] %}
{{ f | to_json }}: {{ lookup('ansible.builtin.file', role_path ~ '/files/supabase-db/' ~ f) | to_json }}
{% endfor %}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ harmony_name }}-proxy
namespace: {{ harmony_namespace }}
labels: {{ labels | to_json }}
data:
kong.yml: {{ lookup('ansible.builtin.template', 'kong.yml.j2') | to_json }}
Caddyfile: {{ lookup('ansible.builtin.file', role_path ~ '/files/Caddyfile') | to_json }}
media-cache.conf: {{ lookup('ansible.builtin.template', 'media-cache.conf.j2') | to_json }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ harmony_name }}-bootstrap
namespace: {{ harmony_namespace }}
labels: {{ labels | to_json }}
data:
docker: {{ lookup('ansible.builtin.file', role_path ~ '/files/docker-shim.sh') | to_json }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ harmony_name }}-theme
namespace: {{ harmony_namespace }}
labels: {{ labels | to_json }}
data:
{% for f in harmony_theme_files %}
{{ f | to_json }}: {{ lookup('ansible.builtin.file', role_path ~ '/files/theme/' ~ f) | to_json }}
{% endfor %}
# Dex-only sign-in and the sign-up redirect (linked by theme.sh when present).
theme.js: {{ lookup('ansible.builtin.template', 'theme.js.j2') | to_json }}