git-server/README.md

63 lines
1.6 KiB
Markdown
Raw Normal View History

2022-08-15 01:16:50 -05:00
# Git Server
2022-08-14 15:16:12 -05:00
2025-01-09 13:55:16 -06:00
This configuration utilizes `docker`, `forgejo`, and `soft serve` for my own self-hosted git instance.
2022-08-15 02:14:05 -05:00
2025-01-09 13:55:16 -06:00
Attracted by the feature set of ~~[`gitea`](https://gitea.io)~~[`forgejo`](https://forgejo.org/) and the charm (pun intended) of [`soft serve`](https://github.com/charmbracelet/soft-serve),
2022-08-15 02:14:05 -05:00
I was unable to choose how to host my own git instance, so I didn't.
Combining the best of both worlds,
2025-01-09 13:55:16 -06:00
I manually update any mirrored repos served by `soft serve` with a python script
2022-08-15 02:14:05 -05:00
to afford myself both a TUI and a browser.
2022-08-15 01:16:50 -05:00
## Setup
2022-08-14 15:16:12 -05:00
2025-01-09 13:55:16 -06:00
Notable changes to `app.ini` for ~~`gitea`~~`forgejo`.
2022-08-14 15:16:12 -05:00
```dosini
APP_NAME = Daylin's Git Server
RUN_MODE = prod
RUN_USER = git
[server]
2022-08-15 01:16:50 -05:00
DOMAIN = https://git.dayl.in
SSH_DOMAIN = git.dayl.in
ROOT_URL = https://git.dayl.in/
2022-08-14 15:16:12 -05:00
[service]
2022-08-15 01:16:50 -05:00
DISABLE_REGISTRATION = true
NO_REPLY_ADDRESS = noreply.git.dayl.in
2022-08-14 15:16:12 -05:00
2022-09-07 09:27:43 -05:00
[service.explore]
DISABLE_USERS_PAGE = true
2022-08-14 15:16:12 -05:00
[ui]
DEFAULT_THEME = arc-green
THEMES = arc-green
2022-08-14 15:16:12 -05:00
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
```
2024-12-24 16:32:36 -06:00
All repos on the `soft-serve` instance are handled using it's mirror feature.
A list of repos are maintained at `soft/repos.txt` and checked/added by running `soft/add-mirrors`.
2022-08-15 02:14:05 -05:00
## Where is this repo, actually?
2025-01-09 13:55:16 -06:00
github < mirror > forgejo < mirror > soft-serve
2025-01-09 13:55:16 -06:00
This repo is hosted on github but mirrored to my self-hosted `forgejo`
instance.
2022-08-15 02:14:05 -05:00
Once there it will be "mirrored" to an instance of [`soft-serve`](https://github.com/charmbracelet/soft-serve).
2022-08-15 02:14:05 -05:00
### [github](https://github.com/daylinmorgan/git-server)
### [git.dayl.in](https://git.dayl.in/daylin/git-server)
### soft-serve
```bash
ssh -p 23231 git.dayl.in
```