Add mautrix-discord bridge config and installer #44

Merged
jared merged 2 commits from discord-bridge into main 2026-10-28 21:25:53 -04:00
Owner

Sets up a Discord ↔ Matrix bridge (mautrix-discord v0.7.7) on LXC 151, logging in as a Discord bot. Discord users appear as Matrix ghosts; Matrix users are relayed into Discord through a channel webhook with their display name.

  • discord-bridge/config.yaml: config template. Homeserver is 127.0.0.1:8008, the appservice listens on 127.0.0.1:29334, the database is mautrix_discord on LXC 109, end-to-bridge encryption is allowed, and @jared is admin. The DB password placeholder is filled in on the server and is never committed.
  • discord-bridge/install.sh: one-time installer, run on the Proxmox node. It creates the PostgreSQL role and database plus the pg_hba line, installs the checksum-verified binary, generates the appservice registration, adds it to app_service_config_files (with a backup), restarts Synapse once, and enables the service. Safe to re-run.
  • systemd/mautrix-discord.service: runs as a dedicated user with hardening.
  • README: bridge section, port map, repo structure, checklist, tech stack.

Nothing here is auto-deployed. The installer is run by hand:

pct exec 151 -- cat /opt/matrix-config/discord-bridge/install.sh | bash

🤖 Generated with Claude Code

https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5

Sets up a Discord ↔ Matrix bridge (mautrix-discord v0.7.7) on LXC 151, logging in as a Discord bot. Discord users appear as Matrix ghosts; Matrix users are relayed into Discord through a channel webhook with their display name. - `discord-bridge/config.yaml`: config template. Homeserver is `127.0.0.1:8008`, the appservice listens on `127.0.0.1:29334`, the database is `mautrix_discord` on LXC 109, end-to-bridge encryption is allowed, and `@jared` is admin. The DB password placeholder is filled in on the server and is never committed. - `discord-bridge/install.sh`: one-time installer, run on the Proxmox node. It creates the PostgreSQL role and database plus the `pg_hba` line, installs the checksum-verified binary, generates the appservice registration, adds it to `app_service_config_files` (with a backup), restarts Synapse once, and enables the service. Safe to re-run. - `systemd/mautrix-discord.service`: runs as a dedicated user with hardening. - README: bridge section, port map, repo structure, checklist, tech stack. Nothing here is auto-deployed. The installer is run by hand: ```bash pct exec 151 -- cat /opt/matrix-config/discord-bridge/install.sh | bash ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
jared added 1 commit 2026-10-28 21:08:58 -04:00
Add mautrix-discord bridge config and installer
Lint / Shell (shellcheck) (push) Successful in 12s
Lint / JS (eslint) (push) Successful in 11s
Lint / No secrets in webhook configs (push) Successful in 7s
Lint / Landing page is rendered (matrix (push) Successful in 8s
Lint / Python (ruff) (push) Successful in 12s
Lint / Python deps (pip-audit) (push) Failing after 1m1s
Lint / Secret scan (gitleaks) (push) Successful in 8s
Lint / Shell (shellcheck) (pull_request) Successful in 15s
Lint / JS (eslint) (pull_request) Successful in 14s
Lint / No secrets in webhook configs (pull_request) Successful in 6s
Lint / Landing page is rendered (matrix (pull_request) Successful in 5s
Lint / Python (ruff) (pull_request) Successful in 7s
Lint / Secret scan (gitleaks) (pull_request) Successful in 9s
Lint / Python deps (pip-audit) (pull_request) Failing after 1m54s
3e6f210f46
Bot-login Discord bridge on LXC 151: config template (DB password is
filled in on the server), systemd unit, and a one-time install script
run from the Proxmox node that sets up the PostgreSQL role/database,
installs the checksum-verified v0.7.7 binary, generates the appservice
registration, adds it to Synapse and restarts Synapse once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
jared scheduled this pull request to auto merge when all checks succeed 2026-10-28 21:09:07 -04:00
jared added 1 commit 2026-10-28 21:22:01 -04:00
Merge branch 'main' into discord-bridge
Lint / Shell (shellcheck) (push) Successful in 14s
Lint / JS (eslint) (push) Successful in 31s
Lint / No secrets in webhook configs (push) Successful in 7s
Lint / Landing page is rendered (matrix (push) Successful in 5s
Lint / Python (ruff) (push) Successful in 5s
Lint / Secret scan (gitleaks) (push) Successful in 7s
Lint / Shell (shellcheck) (pull_request) Successful in 10s
Lint / JS (eslint) (pull_request) Successful in 12s
Lint / No secrets in webhook configs (pull_request) Successful in 8s
Lint / Landing page is rendered (matrix (pull_request) Successful in 7s
Lint / Python (ruff) (pull_request) Successful in 7s
Lint / Python deps (pip-audit) (push) Successful in 1m19s
Lint / Secret scan (gitleaks) (pull_request) Successful in 10s
Lint / Python deps (pip-audit) (pull_request) Successful in 1m19s
3ad2fef28e
jared merged commit 7c10c9591e into main 2026-10-28 21:25:53 -04:00
jared deleted branch discord-bridge 2026-10-28 21:25:53 -04:00
Sign in to join this conversation.