Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
apps/gitea -> apps/rithub-server; compose services/containers renamed (rithub-server-app/postgres/act-runner) with explicit project name and volume names pinned to the exact existing Docker volumes (no data loss); our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs -> ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter + giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram (tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go internal/giteaclient -> internal/ritclient in rithub-async-import (go build/test clean); new /auth/rit + /forges/rit/connect routes with /gitea back-compat aliases; locale/swagger/footer/captcha template text scrubbed of remaining "Gitea" strings. Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea renamed to /srv/rithub-server with a symlink kept, docker compose up -d from the new path, act_runner network-alias fix for its persisted instance URL. Live-verified: docker compose config diff showed zero unintended value changes, DB row counts unchanged (19 users, 635 repos), full route regression 200/expected, 0 "gitea" in headers/bodies on every checked page, real git clone+push over HTTPS and SSH with a disposable account (deleted after). Deferred on purpose (documented in plans/railyard.md): the forge discriminator / DB column names / Postgres role+volume names (data migrations, not a naming change) and the upstream GITEA__ env-to-ini keys and X-Gitea-* wire headers (hardcoded in the vendored engine binary). See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and live evidence. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
96 lines
4.5 KiB
Plaintext
96 lines
4.5 KiB
Plaintext
# apps/rithub-server/.env.example — copy to .env and fill in for local or
|
|
# production use. docker compose reads this automatically (docker compose
|
|
# --env-file .env ... or just `cp .env.example .env` next to
|
|
# docker-compose.yml).
|
|
#
|
|
# RIT_* are the current variable names. The box's real .env may still carry
|
|
# the old GITEA_* names from before the 2026-12-01 rename pass — compose
|
|
# only reads whatever name docker-compose.yml's ${...} references actually
|
|
# say (RIT_* now), so a box .env must define the RIT_* names with the same
|
|
# real values before this file's new docker-compose.yml is deployed there
|
|
# (see plans/railyard.md RIT-OPS entry for the exact migration done).
|
|
|
|
# --- domain / URLs ----------------------------------------------------------
|
|
# NOTE 2026-11-25: the live product is Rithub at rithub.dev (renamed from the
|
|
# original git.ereboslab.com deploy documented in deploy/RUNBOOK.md -- that
|
|
# file is a dated historical record of the first rollout and is intentionally
|
|
# left as-is; these defaults below are the ones actually used today).
|
|
RIT_DOMAIN=rithub.dev
|
|
RIT_ROOT_URL=https://rithub.dev/
|
|
RIT_SSH_PUBLIC_PORT=2222
|
|
# RIT_SSH_DOMAIN MUST be a DNS-only (grey-cloud) hostname, never the same
|
|
# Cloudflare-proxied (orange-cloud) hostname as RIT_DOMAIN above -- the
|
|
# Cloudflare proxy only forwards HTTP(S), so a clone URL built from a proxied
|
|
# hostname times out on port 2222 for every end user even when the box's
|
|
# firewall/VCN security list correctly allow it. Confirmed real 2026-10-25
|
|
# (then under the ereboslab.com name) and re-confirmed 2026-11-25 under
|
|
# rithub.dev: ssh://git@rithub.dev:2222/... would time out through
|
|
# Cloudflare; ssh://git@git-ssh.rithub.dev:2222/... (DNS-only A record, same
|
|
# IP) and the raw IP both work.
|
|
RIT_SSH_DOMAIN=git-ssh.rithub.dev
|
|
|
|
# --- local proof overrides (safe defaults; unset these in production) ------
|
|
# RIT_DOMAIN=localhost
|
|
# RIT_ROOT_URL=http://localhost:3300/
|
|
# RIT_HTTP_HOST_PORT=3300
|
|
# RIT_SSH_HOST_PORT=2222
|
|
# RIT_DB_HOST_PORT=5433
|
|
|
|
# --- secrets (REQUIRED in production — generate with the engine's own CLI,
|
|
# via the rit-admin wrapper on the box) ----------------------------------
|
|
# docker compose run --rm app gitea generate secret SECRET_KEY
|
|
# docker compose run --rm app gitea generate secret INTERNAL_TOKEN
|
|
RIT_SECRET_KEY=
|
|
RIT_INTERNAL_TOKEN=
|
|
RIT_DB_PASSWORD=change-me
|
|
|
|
# --- image pin (bump after checking release notes) --------------------------
|
|
RIT_IMAGE_TAG=1.23
|
|
|
|
# --- accounts: native engine auth, or Railyard SSO (see the railyard-sso
|
|
# block in docker-compose.yml -- closed, backlog item 5) ----------------
|
|
RIT_DISABLE_REGISTRATION=false
|
|
|
|
# --- mailer (RIT-ACT 2026-11-30): forgot-password + activation notices.
|
|
# Route through the shared OCI Email Delivery relay via an address
|
|
# already approved as a sender there (e.g. team@go.rithub.dev) --
|
|
# NOT Resend, per the standing "use Scribase/OCI relay" rule.
|
|
# REGISTER_EMAIL_CONFIRM stays "false" in docker-compose.yml regardless
|
|
# of this -- email must never gate first login. See
|
|
# /etc/products/rago.env (or scribase.env) on the box for real OCI
|
|
# SMTP creds; same OCI "Approved Senders" list applies everywhere.
|
|
RIT_MAILER_ENABLED=true
|
|
RIT_MAILER_PROTOCOL=smtp+starttls
|
|
RIT_MAILER_SMTP_ADDR=smtp.email.eu-frankfurt-1.oci.oraclecloud.com
|
|
RIT_MAILER_SMTP_PORT=587
|
|
RIT_MAILER_USER=
|
|
RIT_MAILER_PASSWD=
|
|
RIT_MAILER_FROM=Rithub <team@go.rithub.dev>
|
|
|
|
# --- billing bridge (integrations/railyard/webhook-bridge) ------------------
|
|
RITHUB_WEBHOOK_SECRET=
|
|
RAGO_WEBHOOK_SECRET=
|
|
RAGO_BASE_URL=http://127.0.0.1:8080
|
|
RAGO_API_KEY=
|
|
MINT_BASE_URL=
|
|
MINT_API_KEY=
|
|
MINT_PLATFORM_ACCT=
|
|
MINT_ORG_ACCT_MAP={}
|
|
|
|
# --- Actions CI runner (act_runner) -----------------------------------------
|
|
# Actions is enabled on the app service above, but a pushed
|
|
# `.gitea/workflows/*.yml` job never executes without a registered runner.
|
|
# Generate a one-time registration token once the app service is up:
|
|
# docker compose exec -u git app gitea actions generate-runner-token
|
|
# (or the rit-admin wrapper: rit-admin actions generate-runner-token)
|
|
# then paste it here and `docker compose up -d act_runner`. The token is
|
|
# only consumed on the runner's first boot (it persists its own credentials
|
|
# in the gitea-runner-data volume after that) — safe to blank out again
|
|
# once the runner shows "Idle" under Site Administration -> Actions -> Runners.
|
|
RIT_RUNNER_TOKEN=
|
|
RIT_RUNNER_NAME=railyard-box
|
|
ACT_RUNNER_IMAGE_TAG=0.6.1
|
|
# Only needed if act_runner runs on a different host than the app
|
|
# container; default resolves it by its compose service name.
|
|
# ACT_RUNNER_INSTANCE_URL=http://app:3000
|