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

Add LFS as default

This commit is contained in:
Éric Gaspar 2022-07-17 16:27:20 +02:00
parent 6f5ca4be0a
commit 9cfbe7fb23
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 5 additions and 2 deletions

View file

@ -242,11 +242,11 @@ APP_DATA_PATH = __DATADIR__/data
LANDING_PAGE = explore
;;
;; Enables git-lfs support. true or false, default is false.
;LFS_START_SERVER = false
LFS_START_SERVER = true
;;
;;
;; LFS authentication secret, change this yourself
LFS_JWT_SECRET =
LFS_JWT_SECRET = __LFS_KEY__
;;
;; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
;LFS_HTTP_AUTH_EXPIRY = 20m

View file

@ -26,6 +26,7 @@ path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
is_public=$YNH_APP_ARG_IS_PUBLIC
key=$(ynh_string_random --length=24)
lfs_key=$(ynh_string_random --length=24)
app=$YNH_APP_INSTANCE_NAME
@ -49,6 +50,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=admin --value=$admin
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=key --value=$key
ynh_app_setting_set --app=$app --key=lfs_key --value=$lfs_key
#=================================================
# STANDARD MODIFICATIONS

View file

@ -28,6 +28,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
key=$(ynh_app_setting_get --app=$app --key=key)
lfs_key=$(ynh_app_setting_get --app=$app --key=lfs_key)
#=================================================
# CHECK VERSION