From b44e18f063b563e9afca434b88f3839acfad8539 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 20 Feb 2025 09:17:58 -0300 Subject: [PATCH] feat: configuration by forge --- app.ini.tmpl | 2 +- compose.forgejo.yml | 2 +- compose.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app.ini.tmpl b/app.ini.tmpl index 900d289..9d5ceb2 100644 --- a/app.ini.tmpl +++ b/app.ini.tmpl @@ -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 }} diff --git a/compose.forgejo.yml b/compose.forgejo.yml index 5f1cd5e..48078ac 100644 --- a/compose.forgejo.yml +++ b/compose.forgejo.yml @@ -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: diff --git a/compose.yml b/compose.yml index 3c474ae..9a67888 100644 --- a/compose.yml +++ b/compose.yml @@ -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