diff options
| author | crupest <crupest@outlook.com> | 2024-11-03 20:42:34 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2024-11-03 20:43:08 +0800 | 
| commit | 58618b033be7518147dc160ed30532a03f492d4c (patch) | |
| tree | 6719538d3e7c3483d89ad3c68ca319638ebd7ad3 | |
| parent | afbaad3f6932e8afe86e4e56a16d9d04a4316ad6 (diff) | |
| download | crupest-58618b033be7518147dc160ed30532a03f492d4c.tar.gz crupest-58618b033be7518147dc160ed30532a03f492d4c.tar.bz2 crupest-58618b033be7518147dc160ed30532a03f492d4c.zip  | |
fix(forgejo): make generated config file as init.
| -rw-r--r-- | template/docker-compose.yaml.template | 1 | ||||
| -rw-r--r-- | template/forgejo.app.ini.init.template (renamed from template/forgejo.app.ini.template) | 9 | 
2 files changed, 3 insertions, 7 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index 18b9b32..48921bb 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -172,7 +172,6 @@ services:        - USER_UID=1000        - USER_GID=1000      volumes: -      - ./forgejo.app.ini:/data/gitea/conf/app.ini        - ./data/forgejo:/data        - /etc/timezone:/etc/timezone:ro        - /etc/localtime:/etc/localtime:ro diff --git a/template/forgejo.app.ini.template b/template/forgejo.app.ini.init.template index 3bd44c4..7dc3800 100644 --- a/template/forgejo.app.ini.template +++ b/template/forgejo.app.ini.init.template @@ -1,3 +1,6 @@ +# Copy this file to ./data/forgejo/gitea/conf/app.ini +# TODO: Copy this to data directory automatically. +  APP_NAME = Forgejo, loved by crupest.  RUN_MODE = prod  WORK_PATH = /data/gitea @@ -8,15 +11,12 @@ HTTP_PORT        = 3000  ROOT_URL         = https://git.${CRUPEST_DOMAIN}  DISABLE_SSH      = true  LFS_START_SERVER = true -LFS_JWT_SECRET_URI = file:/data/forgejo-secret/lfs_jwt_secret  [database]  DB_TYPE = sqlite3  [security]  INSTALL_LOCK = false -SECRET_KEY_URI = file:/data/forgejo-secret/secret_key -INTERNAL_TOKEN_URI = file:/data/forgejo-secret/internal_token  REVERSE_PROXY_LIMIT = 1  REVERSE_PROXY_TRUSTED_PROXIES = * @@ -38,8 +38,5 @@ MODE = console,file  [cron]  ENABLED = true -[oauth2] -JWT_SECRET_URI = file:/data/forgejo-secret/oauth2_jwt_secret -  [actions]  ENABLED = false  | 
