No description
  • Rust 61.4%
  • Shell 20.1%
  • Python 18.3%
  • Go Template 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anton Bauer 17caa7439c fix(meals,monitoring,photos,messaging,filestore,git): upgrade services
Tier 2: Mealie v3.29.0 -> v3.30.0, Prometheus v3.15.1 -> v3.16.0.
Mealie 3.30 requires can_organize for managing units/tools (the
recipe-import key's user is admin with canOrganize; units, foods, tools
and recipes endpoints verified); DB_ENGINE no longer falls back to
SQLite (set to postgres); OPENAI_CUSTOM_PROMPT_DIR removed (not used).
Prometheus 3.16 drops remote-write 2.0 metadata metrics (no
remote_write in use); all 6 scrape targets up.

Tier 3: Immich v3.3.5 -> v3.3.6 (disables onnxruntime telemetry in ML;
migrations ran, no schema drift), Synapse v1.164.1 -> v1.164.2 (no
upgrade notes for 1.164.x; SSO login flow verified), Seafile 13.0.28 ->
13.0.29 (security release: XSS, privilege bypass, API SQL injection,
SSRF, share-boundary fixes; minor-upgrade script completed).

Forgejo 16.0.7 -> 17.0.1, rolled out on its own: 16.0 reached EOL on
2026-10-29; a maintainer confirmed on #14866 that 17.0.1 fixes the
17.0.0 push/merge "cannot lock ref" regression (#14869), and the
push-mirror regression #14882 is fixed by #14885. 17.0 parses config
durations strictly (app.ini sets none), renames the default log file
(logs go to console), resolves absolute links in rendered repo docs
against the repo root, and requires the JWT exp claim. Healthz passes
and the Authelia OIDC login redirect works. The startup warning
"Unable to register source: authelia" is a pre-existing race (Forgejo
starts before Traefik's authelia alias) that also occurs on 16.0.7.

Deferred: Seafile 14 (14.0.9 is labelled beta upstream; also needs
seafdav.conf/seahub_settings.py edits), MariaDB 11.8 LTS -> 13
(schema-owning DB major, not requested).

Claude-Session: https://claude.ai/code/session_018y76pF6sZfzTYiYEBhsV56
2026-11-08 14:29:06 +01:00
.claude/skills docs: sync documentation with current project state 2026-10-18 13:13:18 +02:00
cli fix(hctl): keep hand-added keys when assembling secrets env files 2026-10-18 13:18:27 +02:00
docs fix(iam): enable LLDAP self-service, disable broken Authelia password reset 2026-10-31 15:01:12 +01:00
scripts feat(meals): extract kitchen tools in recipe import 2026-10-19 06:25:33 +02:00
services fix(meals,monitoring,photos,messaging,filestore,git): upgrade services 2026-11-08 14:29:06 +01:00
systemd feat(meals): nightly recipe import from Immich photos to Mealie 2026-10-18 11:53:16 +02:00
tests test(finance): add unit tests for firefly-categorize data definitions 2026-05-24 10:32:44 +02:00
.gitignore service(messaging): scaffold whatsapp bridge service directory 2026-04-28 14:09:06 +02:00
CLAUDE.md fix: back up /data bind mounts in weekly maintenance 2026-10-18 13:20:31 +02:00
compose.yaml service(media): add Jellyfin media server 2026-09-09 14:46:46 +02:00
README.md docs: sync documentation with current project state 2026-10-18 13:13:18 +02:00
todos.md fix(postgres): remove orphaned data/schemas bind mount that blocked startup 2026-07-21 15:53:41 +02:00

Nocturnal Home Server

Documentation

Architecture

Every web service joins the proxy network and is routed by Traefik; each stack also has its own internal network. Simplified view:

graph TD
    Internet["🌐 Internet"] --> Traefik

    subgraph proxy["proxy network"]
        Traefik["Traefik\nreverse proxy + SSL"]
        Authelia["Authelia\nauthelia.nocturnal-home.de"]
        LLDAP["LLDAP\nlldap.nocturnal-home.de"]
        Radicale["Radicale\nradicale.nocturnal-home.de"]
        Firefly["Firefly III\nbudget.nocturnal-home.de"]
        Importer["Firefly Importer\nimporter.nocturnal-home.de"]
        Grafana["Grafana\ngrafana.nocturnal-home.de"]
        Whoami["Whoami\nwhoami.nocturnal-home.de"]
        Homepage["Homepage\nhome.nocturnal-home.de"]
        Synapse["Synapse\nchat.nocturnal-home.de"]
        Element["Element\nchat.nocturnal-home.de"]
        SynapseAdmin["Synapse Admin\nmatrix-admin.nocturnal-home.de"]
        Immich["Immich\nphotos.nocturnal-home.de"]
        Seafile["Seafile\ndrive.nocturnal-home.de"]
        Mealie["Mealie\nmeals.nocturnal-home.de"]
        Forgejo["Forgejo\ngit.nocturnal-home.de"]
        Jellyfin["Jellyfin\nmedia.nocturnal-home.de"]
    end

    subgraph postgres_net["postgres network"]
        Postgres[("postgres\nShared PostgreSQL")]
    end

    subgraph lldap_net["lldap network"]
        LLDAP
    end

    subgraph authelia_net["authelia network"]
        Authelia
        Redis[("iam-redis\nRedis")]
    end

    subgraph finance_net["finance network"]
        Firefly
        Importer
    end

    Ofelia["ofelia-finance\ncron scheduler\n(via Podman socket)"]

    subgraph monitoring_net["monitoring network"]
        Grafana
        Prometheus["Prometheus"]
        Loki["Loki"]
        Alloy["Alloy"]
        NodeExporter["Node Exporter"]
        Cadvisor["cAdvisor"]
    end

    subgraph messaging_net["messaging network"]
        Synapse
        Coturn["Coturn\nSTUN/TURN"]
        TelegramBridge["mautrix-telegram"]
        WhatsAppBridge["mautrix-whatsapp"]
    end

    subgraph photos_net["photos network"]
        Immich
        ImmichML["Immich ML"]
        ImmichPostgres[("immich-postgres")]
        ImmichRedis[("immich-redis\nValkey")]
    end

    subgraph filestore_net["filestore network"]
        Seafile
        SeafileDB[("seafile-db\nMariaDB")]
        SeafileRedis[("seafile-redis\nValkey")]
    end

    Traefik -- "forward-auth" --> Authelia
    Authelia -- "LDAP :3890" --> LLDAP
    Authelia --- Redis
    Authelia --- Postgres
    LLDAP --- Postgres
    Ofelia -- "cron trigger" --> Firefly
    Ofelia -- "cron trigger" --> Importer
    Importer -- "API" --> Firefly
    Firefly --- Postgres
    Grafana --- Prometheus
    Grafana --- Loki
    Loki --- Alloy
    Prometheus --- NodeExporter
    Prometheus --- Cadvisor
    Synapse -- "OIDC" --> Authelia
    Synapse --- Postgres
    Synapse --- TelegramBridge
    Synapse --- WhatsAppBridge
    TelegramBridge --- Postgres
    WhatsAppBridge --- Postgres
    Immich -- "OIDC" --> Authelia
    Immich --- ImmichPostgres
    Immich --- ImmichRedis
    Immich --- ImmichML
    Seafile -- "OIDC" --> Authelia
    Seafile --- SeafileDB
    Seafile --- SeafileRedis
    Mealie -- "OIDC" --> Authelia
    Mealie --- Postgres
    Forgejo -- "OIDC" --> Authelia
    Forgejo --- Postgres
    Radicale -- "LDAP :3890" --> LLDAP
    Jellyfin -- "LDAP :3890" --> LLDAP

Active Services

Infrastructure

  • PostgreSQL - Shared database instance (LLDAP, Authelia, Firefly III, Synapse, both bridges, Mealie, Forgejo)
    • Location: services/00_postgres/
  • Traefik - Reverse proxy with automatic HTTPS/SSL via Let's Encrypt; also runs Whoami (forward-auth test page)
    • Location: services/00_reverse-proxy/
  • LLDAP - Lightweight LDAP server for centralized user management
  • Authelia - SSO and authentication with OIDC support
    • Location (both): services/01_iam/
  • Monitoring stack - Prometheus, Grafana, Loki, Alloy, Node Exporter, cAdvisor
    • Location: services/05_monitoring/

Applications

  • Homepage - Service dashboard (forward-auth protected)
    • Location: services/06_homepage/
  • Radicale - CalDAV/CardDAV server for calendars and contacts (LDAP-integrated)
    • Location: services/02_webdav/
  • Firefly III - Personal finance manager with Authelia forward auth; includes data importer and ofelia cron scheduler
    • Location: services/03_finance/
  • Matrix/Synapse - Matrix homeserver with Element web client, Coturn STUN/TURN, and Synapse Admin (OIDC via Authelia)
    • Location: services/07_messaging/
  • mautrix bridges - Telegram and WhatsApp bridges for Matrix
    • Location: services/09_telegram-bridge/, services/10_whatsapp-bridge/
  • Immich - Photo and video management (OIDC via Authelia, own PostgreSQL)
    • Location: services/08_photos/
  • Seafile - File sync and share (OIDC via Authelia, own MariaDB)
    • Location: services/11_filestore/
  • Mealie - Recipe manager (OIDC via Authelia); fed nightly by the recipe import
    • Location: services/12_meals/
  • Forgejo - Git forge, SSH on port 2222 (OIDC via Authelia)
    • Location: services/13_git/
  • Jellyfin - Media server (authenticates directly against LLDAP, not via Authelia)
    • Location: services/14_media/