diff options
author | crupest <crupest@outlook.com> | 2024-11-03 19:44:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-11-03 19:44:19 +0800 |
commit | 2f5a6d7d6d96cfc43a3f48734f797768f7af94b6 (patch) | |
tree | 3d1f2ae694d44c6667ecadf06b9cb32d04a00675 /template | |
parent | c50ea3f9348115fe150857664f89382e954a6e14 (diff) | |
download | crupest-2f5a6d7d6d96cfc43a3f48734f797768f7af94b6.tar.gz crupest-2f5a6d7d6d96cfc43a3f48734f797768f7af94b6.tar.bz2 crupest-2f5a6d7d6d96cfc43a3f48734f797768f7af94b6.zip |
fix(forgejo): change the way to save secrets.
Diffstat (limited to 'template')
-rw-r--r-- | template/forgejo.app.ini.template | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/template/forgejo.app.ini.template b/template/forgejo.app.ini.template index c77dd75..3bd44c4 100644 --- a/template/forgejo.app.ini.template +++ b/template/forgejo.app.ini.template @@ -8,15 +8,15 @@ HTTP_PORT = 3000 ROOT_URL = https://git.${CRUPEST_DOMAIN} DISABLE_SSH = true LFS_START_SERVER = true -LFS_JWT_SECRET = ${CRUPEST_FORGEJO_LFS_JWT_SECRET} +LFS_JWT_SECRET_URI = file:/data/forgejo-secret/lfs_jwt_secret [database] DB_TYPE = sqlite3 [security] INSTALL_LOCK = false -SECRET_KEY = ${CRUPEST_FORGEJO_SECURITY_KEY} -INTERNAL_TOKEN = ${CRUPEST_FORGEJO_SECURITY_INTERNAL_TOKEN} +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 = * @@ -39,7 +39,7 @@ MODE = console,file ENABLED = true [oauth2] -JWT_SECRET = ${CRUPEST_FORGEJO_OAUTH2_JWT_SECRET} +JWT_SECRET_URI = file:/data/forgejo-secret/oauth2_jwt_secret [actions] ENABLED = false |