mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
cleaning
This commit is contained in:
parent
8e81f488a9
commit
aa11e5a24e
4 changed files with 36 additions and 11 deletions
|
@ -20,6 +20,9 @@ media.baseURL="https://__DOMAIN__"
|
||||||
admin.gateway="cp-admin"
|
admin.gateway="cp-admin"
|
||||||
auth.gateway="cp-auth"
|
auth.gateway="cp-auth"
|
||||||
|
|
||||||
|
media.root="media"
|
||||||
|
media.storage="__DATA_DIR__"
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Database configuration
|
# Database configuration
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
@ -32,12 +35,12 @@ database.default.DBPrefix="cp_"
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Email configuration
|
# Email configuration
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# email.fromEmail="your_email_address"
|
email.fromEmail="__EMAIL__"
|
||||||
# email.fromName="Castopod"
|
email.fromName="Castopod"
|
||||||
# email.SMTPHost="localhost"
|
email.SMTPHost="localhost"
|
||||||
# email.SMTPPort="25"
|
email.SMTPPort="25"
|
||||||
# email.SMTPUser="your_smtp_user"
|
email.SMTPUser="__APP__"
|
||||||
# email.SMTPPass="your_smtp_password"
|
email.SMTPPass="__MAIL_PWD__"
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Cache configuration (advanced)
|
# Cache configuration (advanced)
|
||||||
|
@ -55,7 +58,19 @@ cache.redis.password=null
|
||||||
cache.redis.port=6379
|
cache.redis.port=6379
|
||||||
cache.redis.database=__REDIS_DB__
|
cache.redis.database=__REDIS_DB__
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# S3 configuration
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# media.fileManager="s3"
|
||||||
|
# media.s3.endpoint="your_s3_host"
|
||||||
|
# media.s3.key="your_s3_key"
|
||||||
|
# media.s3.secret="your_s3_secret"
|
||||||
|
# media.s3.region="your_s3_region"
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# REST API configuration
|
# REST API configuration
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# restapi.enabled=true
|
# restapi.enabled=true
|
||||||
|
# restapi.basicAuthUsername=castopod
|
||||||
|
# restapi.basicAuthPassword=password
|
||||||
|
# restapi.basicAuth=true
|
||||||
|
|
|
@ -34,6 +34,9 @@ ram.runtime = "50M"
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
|
[install.admin]
|
||||||
|
type = "user"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
@ -44,9 +47,12 @@ ram.runtime = "50M"
|
||||||
in_subdir = true
|
in_subdir = true
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
allow_email = true
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
|
[resources.data_dir]
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ source /usr/share/yunohost/helpers
|
||||||
fpm_footprint="low"
|
fpm_footprint="low"
|
||||||
fpm_free_footprint=0
|
fpm_free_footprint=0
|
||||||
fpm_usage="low"
|
fpm_usage="low"
|
||||||
|
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
||||||
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
||||||
|
|
|
@ -73,17 +73,20 @@ chown root: "/etc/cron.d/$app"
|
||||||
chmod 644 "/etc/cron.d/$app"
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE CASTOPOD
|
# CONFIGURE CASTOPOD DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Castopod database..." --weight=1
|
ynh_script_progression --message="Configuring Castopod database..." --weight=1
|
||||||
|
|
||||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/v1.5.2.sql"
|
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/v1.5.2.sql"
|
||||||
|
|
||||||
#ynh_script_progression --message="Configuring Castopod..." --weight=1
|
#=================================================
|
||||||
|
# ADD CONFIGURE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring Castopod..." --weight=1
|
||||||
|
|
||||||
# ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env"
|
ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env"
|
||||||
# chmod 600 $install_dir/.env
|
chmod 600 $install_dir/.env
|
||||||
# chown $app:www-data "$install_dir/.env"
|
chown $app:www-data "$install_dir/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue