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:
parent
a089e88a0f
commit
d1b4f60d91
2 changed files with 0 additions and 9 deletions
|
@ -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__
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue