From a3b1b61ca9e2d06c45822cee80f9f72207e0abde Mon Sep 17 00:00:00 2001 From: Matheus Fillipe Date: Thu, 29 Oct 2026 11:24:49 +0100 Subject: [PATCH] fix: serve the invite page with a real certificate and derive its urls --- .env.example | 3 ++- compose.yaml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 955f27c..5d19b4f 100644 --- a/.env.example +++ b/.env.example @@ -6,8 +6,9 @@ API_FQDN=api.example.com # Optional: invite-link splash page hosted by obbyircd's invite-page module. # Leave INVITE_FQDN empty to keep the listener internal-only; set it to expose # the splash through Traefik (DNS A-record must resolve to this host). +# Invite links default to https://INVITE_FQDN/i/ and the page's web button to +# https://WEB_FQDN/; set INVITE_BASE_URL or INVITE_WEB_URL to change them. INVITE_FQDN=invite.example.com -INVITE_BASE_URL=https://invite.example.com/i/ INVITE_PAGE_PORT=8661 # --- IRC server identity --- diff --git a/compose.yaml b/compose.yaml index b6f49a2..4968d83 100644 --- a/compose.yaml +++ b/compose.yaml @@ -34,7 +34,8 @@ services: VOICE_TURN_SHARED_SECRET: ${VOICE_TURN_SHARED_SECRET:-} VOICE_TURN_TTL: ${VOICE_TURN_TTL:-} INVITE_PAGE_PORT: "${INVITE_PAGE_PORT:-8661}" - INVITE_BASE_URL: ${INVITE_BASE_URL:-} + INVITE_BASE_URL: ${INVITE_BASE_URL:-${INVITE_FQDN:+https://${INVITE_FQDN}/i/}} + INVITE_WEB_URL: ${INVITE_WEB_URL:-${WEB_FQDN:+https://${WEB_FQDN}/}} WEBPUSH_BACKEND_URL: ${WEBPUSH_BACKEND_URL:-https://${API_FQDN}} WEBPUSH_BACKEND_KEY: ${IRC_SERVER_KEY} env_file: @@ -50,6 +51,7 @@ services: - traefik.enable=true - traefik.http.routers.obbyircd-invite.rule=Host(`${INVITE_FQDN}`) - traefik.http.routers.obbyircd-invite.tls=true + - traefik.http.routers.obbyircd-invite.tls.certresolver=letsencrypt - traefik.http.routers.obbyircd-invite.service=obbyircd-invite - traefik.http.services.obbyircd-invite.loadbalancer.server.port=${INVITE_PAGE_PORT:-8661}