Forum: a service of its own and the /forum pages

services/forum (axum, port 8083) on the same database and login, in the
forum schema (migration 0038, which also adds the moderator role):
nicknames, profiles with shared signs, topics, threads with listening or
advice intent, two-level replies, read marks and followed threads,
reactions as ratings with points and ranks, newcomer limits (lifted by a
purchase), moderation with reasons, bans and a log. Integration tests run
in CI.

The frontend's /forum pages (light by default, dark on request, phone
first with a desktop layout) are switched on by FORUM_URL; the /api/v1
proxy sends /api/v1/forum/* to the forum service. Concept and status:
docs/kozosseg.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 10:29:49 +00:00
co-authored by Claude Opus 5.5
parent fa46dcb757
commit 36b38525c3
52 changed files with 6782 additions and 11 deletions
+4 -3
View File
@@ -60,7 +60,7 @@ jobs:
# astro-engine and horoscope-api need the Swiss Ephemeris sources and
# data (scripts/fetch-deps.sh); their tests run locally.
- name: Test
run: cargo test --locked -p backend -p worker -p db -p horoscope-client -p service-kit -p analysis-prompt -p email-templates
run: cargo test --locked -p backend -p worker -p forum -p db -p horoscope-client -p service-kit -p analysis-prompt -p email-templates
build:
needs: test
@@ -95,6 +95,7 @@ jobs:
build horoscope-api -f services/horoscope-api/Dockerfile .
build backend -f services/backend/Dockerfile .
build worker -f services/worker/Dockerfile .
build forum -f services/forum/Dockerfile .
build frontend services/frontend
# Only the last 5 commit images of each service stay in the registry,
# plus `main`, `prod`, `latest` and the commit running in production
@@ -107,7 +108,7 @@ jobs:
set -eu
apk add --no-cache -q curl jq
prod=$(git ls-remote origin refs/heads/prod | cut -c1-12)
for svc in horoscope-api backend worker frontend; do
for svc in horoscope-api backend worker forum frontend; do
name="sorsfonalak-$svc"
page=1
: > versions.tsv
@@ -132,7 +133,7 @@ jobs:
if: always()
run: |
docker logout "$REGISTRY" || true
for svc in horoscope-api backend worker frontend; do
for svc in horoscope-api backend worker forum frontend; do
docker images "$IMAGE_PREFIX-$svc" --format '{{.Repository}}:{{.Tag}}' | xargs -r docker rmi >/dev/null 2>&1 || true
done
docker image prune -f >/dev/null