diff --git a/README.md b/README.md index 86f2679..ea488c3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 🐙 Homelab Gitea (Git Service) +# 🫖 Homelab Gitea (Git Service) Self-hosted lightweight Git service, code repository, and issue tracker. @@ -8,7 +8,7 @@ Self-hosted lightweight Git service, code repository, and issue tracker. - **Proxy Network**: Attached to external `proxy-net` - **Domain**: `gitea.roadtotech.me` -- **Target Port**: `3000` (HTTP Web), `2222` (SSH) +- **Target Port**: `3000` (HTTP Web), `2223` (SSH Host Port) --- @@ -26,6 +26,7 @@ networks: - proxy-net env: SSH_DOMAIN: "gitea.roadtotech.me" + SSH_PORT: "2223" homepage: title: "Gitea" group: "Development & AI" @@ -36,6 +37,28 @@ homepage: --- +## 🔑 SSH Access + +Gitea exposes its SSH service on host port **`2223`** to avoid collision with the host OS SSH daemon. + +### Client `~/.ssh/config` +To use standard `git clone git@gitea.roadtotech.me:...` without specifying `-p 2223`: + +```ssh-config +Host gitea.roadtotech.me + User git + Port 2223 + IdentityFile ~/.ssh/id_ed25519 +``` + +Test connection: +```bash +ssh -T git@gitea.roadtotech.me +# or explicitly: ssh -T -p 2223 git@gitea.roadtotech.me +``` + +--- + ## 🚀 Deployment ### Via Orchestrator (`appctl`) @@ -51,4 +74,4 @@ docker compose up -d --- ## 📄 License -This repository is released into the public domain under the [Unlicense](LICENSE). +This repository is released into the public domain under the [Unlicense](UNLICENSE). diff --git a/app.yaml b/app.yaml index ca40f4f..5e4fefa 100644 --- a/app.yaml +++ b/app.yaml @@ -9,6 +9,7 @@ networks: - proxy-net env: SSH_DOMAIN: "gitea.roadtotech.me" + SSH_PORT: "2223" homepage: title: "Gitea" group: "Development & AI" diff --git a/docker-compose.yml b/docker-compose.yml index 1aa502c..f3f146f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,11 @@ services: - GITEA__database__DB_TYPE=${DB_TYPE:-sqlite3} - GITEA__server__DOMAIN=${SERVICE_DOMAIN} - GITEA__server__SSH_DOMAIN=${SSH_DOMAIN:-${SERVICE_DOMAIN}} + - GITEA__server__SSH_PORT=${SSH_PORT:-2223} + - GITEA__server__SSH_LISTEN_PORT=22 - GITEA__server__ROOT_URL=https://${SERVICE_DOMAIN} + ports: + - "${SSH_PORT:-2223}:22" volumes: - ${DATA_PATH:-./data}:/data - /etc/timezone:/etc/timezone:ro