Update instruction file with corrected Git SSH configuration
- Change port from 1337 to 2222 - Update user from forgejo to git for SSH compatibility - Fix URL and remote configuration examples
This commit is contained in:
parent
1f222f2997
commit
f6eb588ccd
1 changed files with 4 additions and 4 deletions
|
@ -92,13 +92,13 @@ Home-lab/
|
||||||
|
|
||||||
### Git/Forgejo Configuration
|
### Git/Forgejo Configuration
|
||||||
- **Primary repository**: Hosted on self-hosted Forgejo instance
|
- **Primary repository**: Hosted on self-hosted Forgejo instance
|
||||||
- **Forgejo URL**: `ssh://forgejo@git.geokkjer.eu:1337/geir/Home-lab.git`
|
- **Forgejo URL**: `ssh://git@git.geokkjer.eu:2222/geir/Home-lab.git`
|
||||||
- **SSH port**: 1337 (proxied through reverse-proxy to grey-area:22)
|
- **SSH port**: 2222 (proxied through reverse-proxy to grey-area:22)
|
||||||
- **User**: Must use `forgejo` user, not `git` user
|
- **User**: Must use `git` user for SSH compatibility
|
||||||
- **GitHub mirror**: `git@github.com:geokkjer/Home-lab.git` (secondary/backup)
|
- **GitHub mirror**: `git@github.com:geokkjer/Home-lab.git` (secondary/backup)
|
||||||
- **Remote configuration**:
|
- **Remote configuration**:
|
||||||
```bash
|
```bash
|
||||||
git remote add origin ssh://forgejo@git.geokkjer.eu:1337/geir/Home-lab.git
|
git remote add origin ssh://git@git.geokkjer.eu:2222/geir/Home-lab.git
|
||||||
git remote add github git@github.com:geokkjer/Home-lab.git
|
git remote add github git@github.com:geokkjer/Home-lab.git
|
||||||
```
|
```
|
||||||
- **Pushing**: Primary pushes to Forgejo origin, manual sync to GitHub as needed
|
- **Pushing**: Primary pushes to Forgejo origin, manual sync to GitHub as needed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue