docs/AI_COACH.md gab es, verlinkt war es von nirgendwo, und weder README noch die Website erwaehnten das Feature ueberhaupt. Wer es nicht schon kannte, konnte es nicht finden. README: Zeile bei den Features (neben dem MCP-Punkt, denn beides ist optional und beides bleibt aus dem Standard-Build draussen), Haken im Roadmap, Absatz unter Tech zur eigentlichen Konstruktion -- Allowlist raus, geschlossene Liste rein, Anwenden erst nach Zustimmung auf dem Client. API_TARGET und COACH_DISABLED standen in keiner Konfigurationstabelle und in keiner .env.example, obwohl das die zwei Schalter sind, die man dafuer braucht. website/docs.html bekommt einen eigenen Abschnitt neben "Ask an AI" -- die beiden werden sonst verwechselt: das eine liest read-only ueber MCP, das andere schreibt Plaene vor. Mit dem Gesundheitshinweis, wie in der App auch.
101 lines
5.2 KiB
Bash
101 lines
5.2 KiB
Bash
# Copy this file to ".env" and adjust for your setup, then: docker compose up -d
|
|
#
|
|
# ── Local testing (default) ────────────────────────────────────────────────
|
|
# Works out of the box on the machine running Docker. Open http://localhost:8080
|
|
RP_ID=localhost
|
|
ORIGIN=http://localhost:8080
|
|
WEB_PORT=8080
|
|
RP_NAME=openGym
|
|
|
|
# ── Real deployment behind your own HTTPS domain ───────────────────────────
|
|
# Passkeys are bound to the exact hostname, and browsers only allow them over
|
|
# HTTPS (localhost is the one exception). Put openGym behind a reverse proxy /
|
|
# tunnel that terminates TLS for your domain, then set:
|
|
#
|
|
# RP_ID=gym.example.com
|
|
# ORIGIN=https://gym.example.com
|
|
# WEB_PORT=8080
|
|
# RP_NAME=openGym
|
|
#
|
|
# (Point your proxy at the web container's WEB_PORT. See docs/SELF_HOSTING.md.)
|
|
|
|
# ── Admin dashboard & invite-only signup (optional) ────────────────────────
|
|
# Both off by default — a fresh instance has open signup and no admin.
|
|
#
|
|
# Make yourself an admin: register your own passkey profile first, find your
|
|
# user id in ./data/db.json ("users"[].id), then list it here (comma-separated
|
|
# for several admins). Admins get an "Admin dashboard" link in Settings to see
|
|
# users, disable accounts, generate invite codes and view workout history.
|
|
#
|
|
# ADMIN_UIDS=youruserid,anotheradmin
|
|
#
|
|
# Require an invite code to create new profiles (existing accounts keep working;
|
|
# generate the codes from the admin dashboard):
|
|
#
|
|
# INVITE_ONLY=1
|
|
#
|
|
# Remove the "Continue without account" button, so a profile is the only way in.
|
|
# Guest mode keeps everything in the browser and never touches this server, but
|
|
# on an instance meant for a known set of people it is still the wrong front
|
|
# door. Anyone already inside as a guest is signed out on their next visit; the
|
|
# data they made stays in that browser. Defaults to on (guests allowed):
|
|
#
|
|
# ALLOW_GUEST=0
|
|
|
|
# ── Session length (optional) ──────────────────────────────────────────────
|
|
# How long a sign-in lasts, in days. Default 90 — long enough that people who
|
|
# train regularly never see a login screen, short enough that a stolen cookie
|
|
# doesn't stay good forever. Lower it for an instance on the open internet,
|
|
# raise it for a private one. Only affects new sign-ins; cookies already handed
|
|
# out keep the lifetime they were issued with. Users can end every session on
|
|
# every device themselves with "Sign out everywhere" in Settings.
|
|
#
|
|
# SESSION_DAYS=90
|
|
|
|
# ── Fitting into an existing stack (optional) ──────────────────────────────
|
|
# The defaults assume openGym is on its own: an API service called `api` on
|
|
# port 3000, and nginx listening on 80 inside the web container. If you are
|
|
# merging this into a compose file that already has an `api`, or you front the
|
|
# web container with your own reverse proxy, move them here. The web image
|
|
# renders its nginx config at start-up, so these apply to a prebuilt image and
|
|
# need no rebuild. BACKEND and PORT together are what /api is proxied to, so
|
|
# they must name a service the web container can reach on your network:
|
|
#
|
|
# NGINX_PORT=80
|
|
# BACKEND=api
|
|
# PORT=3000
|
|
|
|
# ── Notifications (optional) ───────────────────────────────────────────────
|
|
# Push works out of the box — nothing to set. VAPID keys are generated on first
|
|
# run and saved to ./data/vapid.json. Each user's browser reports its own
|
|
# timezone automatically, so the workout-day reminder fires at their local
|
|
# time regardless of where the server runs or where they're travelling.
|
|
#
|
|
# Push services want a contact address for whoever operates the server, in case
|
|
# they need to get in touch about your pushes. Defaults to your ORIGIN, which is
|
|
# fine; set a mailto: if you would rather they mailed you:
|
|
#
|
|
# VAPID_SUBJECT=mailto:you@example.com
|
|
|
|
# ── AI Coach (optional, off by default) ────────────────────────────────────
|
|
# The Coach is not in the image you get by default, and it stays off even when
|
|
# it is: an admin has to turn it on in Settings → Admin and connect a provider
|
|
# account. An instance that never does either is byte-for-byte the same app it
|
|
# was before the feature existed.
|
|
#
|
|
# API_TARGET picks which API image gets built. `default` carries no AI runtime
|
|
# at all — no Agent SDK, no Codex, no bubblewrap. `coach` adds them (~300 MB):
|
|
#
|
|
# API_TARGET=coach docker compose up -d --build api
|
|
#
|
|
# COACH_DISABLED is the kill switch that outranks the admin toggle. Set it when
|
|
# you want the Coach off for certain — after an incident, or on an instance
|
|
# where nobody should be able to turn it on:
|
|
#
|
|
# COACH_DISABLED=1
|
|
#
|
|
# Credentials never live here. They are encrypted into ./coach.json, or for the
|
|
# Codex provider cached in ./coach-auth — a sibling of ./data, never inside it,
|
|
# so a live sign-in does not ride along in the documented backup archive.
|
|
# See docs/AI_COACH.md.
|