From 1225103dc9615eed37d352ee26559192d314d876 Mon Sep 17 00:00:00 2001 From: diyaa Date: Sun, 26 Jul 2026 20:15:55 +0200 Subject: [PATCH] Correct production relay hostname --- FchatiApp/Sources/FchatiApp/Networking/RelayAPI.swift | 2 +- FchatiApp/Sources/FchatiApp/Session/AppSession.swift | 2 +- IMPLEMENTATION_STATUS.md | 1 + TASKS.md | 4 ++-- relay-server/.env.example | 1 + relay-server/docker-compose.yml | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/FchatiApp/Sources/FchatiApp/Networking/RelayAPI.swift b/FchatiApp/Sources/FchatiApp/Networking/RelayAPI.swift index 68ff65f..be56dc6 100644 --- a/FchatiApp/Sources/FchatiApp/Networking/RelayAPI.swift +++ b/FchatiApp/Sources/FchatiApp/Networking/RelayAPI.swift @@ -55,7 +55,7 @@ actor RelayAPI { return try await execute(request) } - private let baseURL = URL(string: "https://fchati.diyaa.de")! + private let baseURL = URL(string: "https://fchaty.diyaa.de")! private let session = URLSession.shared private init() {} diff --git a/FchatiApp/Sources/FchatiApp/Session/AppSession.swift b/FchatiApp/Sources/FchatiApp/Session/AppSession.swift index ce9a613..c43c9dc 100644 --- a/FchatiApp/Sources/FchatiApp/Session/AppSession.swift +++ b/FchatiApp/Sources/FchatiApp/Session/AppSession.swift @@ -16,7 +16,7 @@ final class AppSession: ObservableObject { @Published var messages: [ChatMessage] = [] private let relayAPI = RelayAPI.shared - private let webSocket = WSClient(url: URL(string: "wss://fchati.diyaa.de/ws")!) + private let webSocket = WSClient(url: URL(string: "wss://fchaty.diyaa.de/ws")!) private let messageStore = MessageStore.shared private var incomingMessagesTask: Task? diff --git a/IMPLEMENTATION_STATUS.md b/IMPLEMENTATION_STATUS.md index 7401cfc..1090ebb 100644 --- a/IMPLEMENTATION_STATUS.md +++ b/IMPLEMENTATION_STATUS.md @@ -195,6 +195,7 @@ - Verified the Docker Compose configuration with the example environment and confirmed a local relay instance responds successfully from `GET /health`. - Extended WebSocket serialization coverage to preserve the sender timestamp used for offline message delivery. - The relay now defaults to the production Traefik certificate resolver (`myresolver`) and allows a host-specific override through `TRAEFIK_CERT_RESOLVER`. +- Corrected the production hostname to `fchaty.diyaa.de` in the relay route and macOS application HTTP and WebSocket clients. ## Bug Fixes — Post-Review ✅ diff --git a/TASKS.md b/TASKS.md index d784b8f..57baa12 100644 --- a/TASKS.md +++ b/TASKS.md @@ -67,7 +67,7 @@ These are decisions made during planning — do not change without revisiting th |------|---------| | `relay-server/src/index.js` | Node.js relay — Pairing, WebSocket, offline queue (disk-backed), read receipts, file upload/download | | `relay-server/Dockerfile` | Multi-stage Alpine build | -| `relay-server/docker-compose.yml` | Traefik labels for `fchati.diyaa.de`, three persistent volumes (files, queue, pairing) | +| `relay-server/docker-compose.yml` | Traefik labels for `fchaty.diyaa.de`, three persistent volumes (files, queue, pairing) | | `relay-server/.env.example` | Environment variable template | | Git repo | `git.mohfarawati.de/diyaa/fchaty` | @@ -383,7 +383,7 @@ Context: - Repo: https://git.mohfarawati.de/diyaa/fchaty.git - App folder: FchatiApp/ (Swift Package, no Xcode, SPM only) - macOS 14+, Swift 5.9+, no third-party libraries -- Relay server is already running at https://fchati.diyaa.de +- Relay server is already running at https://fchaty.diyaa.de Task: [paste the full task section here, e.g. TASK-04] diff --git a/relay-server/.env.example b/relay-server/.env.example index ae46759..e521a51 100644 --- a/relay-server/.env.example +++ b/relay-server/.env.example @@ -6,3 +6,4 @@ FILE_TTL_DAYS=30 TRAEFIK_CERT_RESOLVER=myresolver # Required for POST /admin/cleanup. Generate a unique value, for example: openssl rand -hex 32 ADMIN_TOKEN=replace-with-a-unique-random-secret +TRAEFIK_CERT_RESOLVER=letsencrypt diff --git a/relay-server/docker-compose.yml b/relay-server/docker-compose.yml index d9753c3..bd17cb3 100644 --- a/relay-server/docker-compose.yml +++ b/relay-server/docker-compose.yml @@ -12,7 +12,7 @@ services: - traefik-net labels: - "traefik.enable=true" - - "traefik.http.routers.fchati.rule=Host(`fchati.diyaa.de`)" + - "traefik.http.routers.fchati.rule=Host(`fchaty.diyaa.de`)" - "traefik.http.routers.fchati.entrypoints=websecure" - "traefik.http.routers.fchati.tls.certresolver=${TRAEFIK_CERT_RESOLVER:-myresolver}" - "traefik.http.services.fchati.loadbalancer.server.port=3000"