diff --git a/.gitea/ISSUE_TEMPLATE/bug_report.yml b/.gitea/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..dfc821e
--- /dev/null
+++ b/.gitea/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,60 @@
+name: Bug report
+description: Something in openGym is broken or not working as expected
+labels: ["bug"]
+body:
+ - type: textarea
+ id: what-happened
+ attributes:
+ label: What did you do?
+ description: Steps to reproduce, as precisely as you can.
+ placeholder: |
+ 1. Go to '...'
+ 2. Click on '...'
+ 3. See error
+ validations:
+ required: true
+
+ - type: textarea
+ id: expected
+ attributes:
+ label: What did you expect to happen?
+ validations:
+ required: true
+
+ - type: textarea
+ id: actual
+ attributes:
+ label: What happened instead?
+ description: Include error messages, console output, or screenshots if you have them.
+ validations:
+ required: true
+
+ - type: dropdown
+ id: setup
+ attributes:
+ label: How are you running openGym?
+ options:
+ - Self-hosted (docker compose)
+ - Frontend dev server (npm run dev)
+ - Other / not sure
+ validations:
+ required: true
+
+ - type: input
+ id: environment
+ attributes:
+ label: Browser & OS
+ placeholder: e.g. Safari 17 on iOS 18, Chrome 126 on Android
+ validations:
+ required: true
+
+ - type: checkboxes
+ id: passkey
+ attributes:
+ label: Is this about login / passkeys?
+ description: >
+ Most login issues are an `RP_ID`/`ORIGIN` mismatch — check your `.env` against the
+ domain you're accessing openGym from before reporting. See the
+ [self-hosting guide](../../docs/SELF_HOSTING.md).
+ options:
+ - label: Yes, this is a login/passkey issue and I've already checked RP_ID/ORIGIN
diff --git a/.gitea/ISSUE_TEMPLATE/config.yml b/.gitea/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..ff525f9
--- /dev/null
+++ b/.gitea/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,14 @@
+# gitea.com has no Discussions, so questions and ideas are issues here — labelled, so they
+# are not mistaken for agreed-on work. Blank issues stay off: the forms ask for the two
+# things that otherwise cost a round-trip every time (how it is running, and RP_ID/ORIGIN).
+blank_issues_enabled: false
+contact_links:
+ - name: Self-hosting guide
+ url: https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/SELF_HOSTING.md
+ about: Passkey login failing, reverse proxies, HTTPS, Docker — most login trouble is an RP_ID/ORIGIN mismatch and is answered here.
+ - name: Contributing guide
+ url: https://gitea.com/DuarteSantos/openGym/src/branch/main/CONTRIBUTING.md
+ about: Project layout, dev setup and guidelines before you open a PR.
+ - name: Changelog
+ url: https://gitea.com/DuarteSantos/openGym/src/branch/main/CHANGELOG.md
+ about: What changed in each release, newest first.
diff --git a/.gitea/ISSUE_TEMPLATE/feature_request.yml b/.gitea/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 0000000..8813faa
--- /dev/null
+++ b/.gitea/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,29 @@
+name: Feature request
+description: Suggest an idea or improvement for openGym
+labels: ["enhancement"]
+body:
+ - type: textarea
+ id: problem
+ attributes:
+ label: What problem does this solve?
+ description: What are you trying to do that openGym doesn't support today?
+ validations:
+ required: true
+
+ - type: textarea
+ id: proposal
+ attributes:
+ label: Proposed approach
+ description: How would you like it to work? Rough ideas are fine.
+ validations:
+ required: true
+
+ - type: checkboxes
+ id: deps
+ attributes:
+ label: Dependencies
+ description: >
+ openGym is intentionally dependency-light — new packages (front or back) are a hard
+ sell. See [CONTRIBUTING.md](../../CONTRIBUTING.md).
+ options:
+ - label: This doesn't require adding a new dependency
diff --git a/.gitea/workflows/docker-publish.yml b/.gitea/workflows/docker-publish.yml
new file mode 100644
index 0000000..d344da5
--- /dev/null
+++ b/.gitea/workflows/docker-publish.yml
@@ -0,0 +1,86 @@
+# Publishes the two images to the gitea.com container registry, replacing GHCR.
+#
+# Images land at gitea.com/duartesantos/opengym-{api,web} and are what
+# `docker compose pull` fetches.
+#
+# As on GitHub, a *published release* is the trigger, never a bare tag push: the
+# versioning rule consolidates unreleased tags, and a deleted tag does not delete
+# the image tags it already pushed — dependency bots then read the orphan as a
+# newer series (that was issue #87 on the old repo).
+#
+# Needs one repository secret: PACKAGES_TOKEN — a gitea.com token with
+# write:package scope (Settings → Applications → Generate New Token). The built-in
+# token cannot write packages.
+name: Publish Docker images
+
+on:
+ push:
+ branches: [main]
+ release:
+ types: [published]
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ include:
+ - image: api
+ context: ./api
+ file: ./api/Dockerfile
+ - image: web
+ context: .
+ file: ./web/Dockerfile
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Lowercase owner (registry names must be lowercase)
+ id: repo
+ run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
+
+ - name: Set version metadata
+ id: version_meta
+ run: |
+ # On a release the ref is refs/tags/vX.Y.Z; on a main push it is a branch ref,
+ # which would otherwise label the image "refs/heads/main".
+ case "$GITHUB_REF" in
+ refs/tags/*) VERSION="${GITHUB_REF#refs/tags/}" ;;
+ *) VERSION="main-${GITHUB_SHA::7}" ;;
+ esac
+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
+ echo "VCS_REF=${GITHUB_SHA}" >> $GITHUB_OUTPUT
+ echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
+
+ - uses: docker/setup-qemu-action@v3
+ - uses: docker/setup-buildx-action@v3
+
+ - uses: docker/login-action@v3
+ with:
+ registry: gitea.com
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.PACKAGES_TOKEN }}
+
+ - uses: docker/metadata-action@v5
+ id: meta
+ with:
+ images: gitea.com/${{ steps.repo.outputs.owner }}/opengym-${{ matrix.image }}
+ tags: |
+ type=raw,value=latest,enable={{is_default_branch}}
+ type=semver,pattern={{version}}
+ type=semver,pattern={{major}}.{{minor}}
+
+ # No cache-from/to: the GHCR copy used type=gha, which is a GitHub-hosted
+ # service and is not there on gitea.com's runners.
+ - uses: docker/build-push-action@v6
+ with:
+ context: ${{ matrix.context }}
+ file: ${{ matrix.file }}
+ platforms: linux/amd64,linux/arm64
+ build-args: |
+ VERSION=${{ steps.version_meta.outputs.VERSION }}
+ VCS_REF=${{ steps.version_meta.outputs.VCS_REF }}
+ BUILD_DATE=${{ steps.version_meta.outputs.BUILD_DATE }}
+ push: true
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
new file mode 100644
index 0000000..f6da78e
--- /dev/null
+++ b/.gitea/workflows/test.yml
@@ -0,0 +1,38 @@
+# Same suite as .github/workflows/test.yml, run by gitea.com's Actions runners.
+# The GitHub copy is kept for the day that account comes back; this one is what
+# actually gates contributions today.
+name: Tests
+
+on:
+ pull_request:
+ paths:
+ - 'frontend/**'
+ - 'mcp/**'
+ - '.gitea/workflows/test.yml'
+ push:
+ branches: [main]
+ paths:
+ - 'frontend/**'
+ - 'mcp/**'
+ - '.gitea/workflows/test.yml'
+ workflow_dispatch:
+
+concurrency:
+ group: test-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ # node:22-alpine in web/Dockerfile and api/Dockerfile — CI must match production.
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: npm
+ cache-dependency-path: frontend/package-lock.json
+ - run: npm ci
+ working-directory: frontend
+ - run: npm test
+ working-directory: frontend
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a33bc04..7826a98 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -55,13 +55,14 @@ cd frontend && npm test
| You have | Goes to |
| --- | --- |
-| A question, or self-hosting that won't behave | [Discussions → Q&A](https://github.com/DuarteSantos8/openGym/discussions/categories/q-a) |
-| An idea you're not sure about yet | [Discussions → Ideas](https://github.com/DuarteSantos8/openGym/discussions/categories/ideas) |
-| A reproducible bug | [Issues](https://github.com/DuarteSantos8/openGym/issues) |
+| A question, or self-hosting that won't behave | [An issue labelled `question`](https://gitea.com/DuarteSantos/openGym/issues) |
+| An idea you're not sure about yet | [An issue labelled `idea`](https://gitea.com/DuarteSantos/openGym/issues) |
+| A reproducible bug | [Issues](https://gitea.com/DuarteSantos/openGym/issues) |
| A change you've already built | A pull request |
-An answered question in Q&A is worth more than the same answer buried in a closed issue — the
-next person searching "passkey login fails behind my reverse proxy" actually finds it.
+gitea.com has no Discussions, so questions and ideas are issues too — just labelled, so nobody
+mistakes a question for agreed-on work. An answered question is worth more than the same answer
+in a chat log: the next person searching "passkey login fails behind my reverse proxy" finds it.
## Reporting bugs
diff --git a/README.md b/README.md
index fd12e3e..a060fee 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,9 @@ No account on someone else's server, no subscription, no ads. Just `docker compo


-
-[](https://github.com/DuarteSantos8/openGym/stargazers)
-[](https://github.com/DuarteSantos8/openGym/issues)
+
+[](https://gitea.com/DuarteSantos/openGym/stars)
+[](https://gitea.com/DuarteSantos/openGym/issues)
@@ -39,11 +39,11 @@ No account on someone else's server, no subscription, no ads. Just `docker compo