1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitea_ynh.git synced 2024-09-03 20:36:22 +02:00

Remove useless app.ini configurations :

* database PATH
* JWT_SECRET

cleanup app.ini
This commit is contained in:
Josué Tille 2023-11-29 10:57:12 +01:00 committed by Félix Piédallu
parent a089e88a0f
commit d1b4f60d91
2 changed files with 0 additions and 9 deletions

View file

@ -14,7 +14,6 @@ NAME = __DB_NAME__
USER = __DB_USER__
PASSWD = __DB_PWD__
SSL_MODE = disable
PATH = data/gitea.db
LOG_SQL = false
[repository]
@ -91,6 +90,3 @@ SECRET_KEY = __SECRET_KEY__
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE-USER
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
INTERNAL_TOKEN = __INTERNAL_TOKEN__
[oauth2]
JWT_SECRET = __JWT_SECRET__

View file

@ -39,11 +39,6 @@ _gitea_set_secrets() {
ynh_app_setting_set --app "$app" --key secret_key --value="$secret_key"
fi
if [[ -z "${jwt_secret:-}" ]]; then
jwt_secret=$(ynh_exec_as "$app" "$install_dir/gitea" generate secret JWT_SECRET)
ynh_app_setting_set --app "$app" --key jwt_secret --value="$jwt_secret"
fi
if [[ -n "${lfs_key:-}" ]]; then
# Migration
lfs_jwt_secret="$lfs_key"