feat(ssh): expose gitea SSH service on port 2223
This commit is contained in:
1 parent
31c3983c43
commit
3edd0283d4
3 files changed
+31
-3
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
# 🐙 Homelab Gitea (Git Service)
|
# 🫖 Homelab Gitea (Git Service)
|
||||||
|
|
||||||
Self-hosted lightweight Git service, code repository, and issue tracker.
|
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`
|
- **Proxy Network**: Attached to external `proxy-net`
|
||||||
- **Domain**: `gitea.roadtotech.me`
|
- **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
|
- proxy-net
|
||||||
env:
|
env:
|
||||||
SSH_DOMAIN: "gitea.roadtotech.me"
|
SSH_DOMAIN: "gitea.roadtotech.me"
|
||||||
|
SSH_PORT: "2223"
|
||||||
homepage:
|
homepage:
|
||||||
title: "Gitea"
|
title: "Gitea"
|
||||||
group: "Development & AI"
|
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
|
## 🚀 Deployment
|
||||||
|
|
||||||
### Via Orchestrator (`appctl`)
|
### Via Orchestrator (`appctl`)
|
||||||
@@ -51,4 +74,4 @@ docker compose up -d
|
|||||||
---
|
---
|
||||||
|
|
||||||
## 📄 License
|
## 📄 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).
|
||||||
@@ -9,6 +9,7 @@ networks:
|
|||||||
- proxy-net
|
- proxy-net
|
||||||
env:
|
env:
|
||||||
SSH_DOMAIN: "gitea.roadtotech.me"
|
SSH_DOMAIN: "gitea.roadtotech.me"
|
||||||
|
SSH_PORT: "2223"
|
||||||
homepage:
|
homepage:
|
||||||
title: "Gitea"
|
title: "Gitea"
|
||||||
group: "Development & AI"
|
group: "Development & AI"
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ services:
|
|||||||
- GITEA__database__DB_TYPE=${DB_TYPE:-sqlite3}
|
- GITEA__database__DB_TYPE=${DB_TYPE:-sqlite3}
|
||||||
- GITEA__server__DOMAIN=${SERVICE_DOMAIN}
|
- GITEA__server__DOMAIN=${SERVICE_DOMAIN}
|
||||||
- GITEA__server__SSH_DOMAIN=${SSH_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}
|
- GITEA__server__ROOT_URL=https://${SERVICE_DOMAIN}
|
||||||
|
ports:
|
||||||
|
- "${SSH_PORT:-2223}:22"
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH:-./data}:/data
|
- ${DATA_PATH:-./data}:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
|||||||
Reference in new issue
Block a user