feat: configuration by forge

This commit is contained in:
f 2025-02-20 09:17:58 -03:00
parent 77624221b4
commit b44e18f063
3 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,7 @@ SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
SSH_PORT = {{ env "GITEA_SSH_PORT" }}
START_SSH_SERVER = true
LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }}
{{ if eq (env "FORGEJO") "1" }}
{{ if eq (env "FORGE") "forgejo" }}
LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
{{ end }}

View File

@ -4,7 +4,7 @@ services:
app:
image: codeberg.org/forgejo/forgejo:10.0.0-rootless
environment:
- FORGEJO=1
- FORGE=forgejo
secrets:
- lfs_jwt_secret
secrets:

View File

@ -15,6 +15,7 @@ services:
- jwt_secret
- secret_key
environment:
- FORGE=gitea
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
- GITEA_APP_NAME
- GITEA_AUTO_WATCH_NEW_REPOS