fix gitea ssh key change on every reboot
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
- [Convert Compose to Quadlet](#convert-compose-to-quadlet)
|
||||
- [Install Quadlets](#install-quadlets)
|
||||
- [Upgrade Quadlets](#upgrade-quadlets)
|
||||
- [Editing Configs within Container](#editing-configs-within-container)
|
||||
- [Editing Gitea Config](#editing-gitea-config)
|
||||
- [Gitea Runners](#gitea-runners)
|
||||
- [Firewall Rules](#firewall-rules)
|
||||
- [Install](#install)
|
||||
@@ -19,13 +19,25 @@
|
||||
### A note on directories
|
||||
|
||||
```bash
|
||||
RunMode: prod
|
||||
AppPath: /usr/local/bin/gitea
|
||||
WorkPath: /data/gitea
|
||||
CustomPath: /data/gitea
|
||||
ConfigFile: /data/gitea/conf/app.ini
|
||||
2025/07/30 16:49:12 cmd/web.go:116:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
|
||||
2025/07/30 16:49:12 cmd/web.go:117:showWebStartupMessage() [I] * WorkPath: /var/lib/gitea
|
||||
2025/07/30 16:49:12 cmd/web.go:118:showWebStartupMessage() [I] * CustomPath: /var/lib/gitea/custom
|
||||
2025/07/30 16:49:12 cmd/web.go:119:showWebStartupMessage() [I] * ConfigFile: /etc/gitea/app.ini
|
||||
|
||||
Data: /data/gitea/data/
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/attachments
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/avatars
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-avatars
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-archive
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/packages
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/actions_log
|
||||
2025/07/30 16:49:12 modules/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
|
||||
2025/07/30 16:49:12 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/actions_artifacts
|
||||
```
|
||||
|
||||
### Create the gitea user
|
||||
@@ -74,7 +86,19 @@ scp -r $(pwd)/active/podman_gitea/quadlets/. gitea:~/.config/containers/systemd/
|
||||
|
||||
### Install Quadlets
|
||||
|
||||
The first user you register will be the admin
|
||||
First, set up the volumes needed by the container.
|
||||
|
||||
```bash
|
||||
# Enter the container namespace
|
||||
podman unshare
|
||||
|
||||
# Create the volumes
|
||||
mkdir gitea_data
|
||||
mkdir gitea_etc
|
||||
exit
|
||||
```
|
||||
|
||||
Now launch the service. The first user you register will be the admin.
|
||||
|
||||
```bash
|
||||
ssh gitea systemctl --user daemon-reload
|
||||
@@ -91,10 +115,11 @@ ssh gitea systemctl --user daemon-reload
|
||||
ssh gitea systemctl --user restart gitea postgres
|
||||
```
|
||||
|
||||
### Editing Configs within Container
|
||||
### Editing Gitea Config
|
||||
|
||||
```bash
|
||||
apk add vim
|
||||
# Use podman unshare to work within the container's namespace
|
||||
podman unshare vim ~/gitea_data/gitea/conf/app.ini
|
||||
```
|
||||
|
||||
## Gitea Runners
|
||||
|
||||
Reference in New Issue
Block a user