mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
typo
This commit is contained in:
parent
33620aacc6
commit
506a4943b1
4 changed files with 33 additions and 28 deletions
2
conf/local-production.json
Normal file
2
conf/local-production.json
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
|
@ -5,7 +5,7 @@ listen:
|
||||||
# Correspond to your reverse proxy server_name/listen configuration
|
# Correspond to your reverse proxy server_name/listen configuration
|
||||||
webserver:
|
webserver:
|
||||||
https: true
|
https: true
|
||||||
hostname: '__domain__'
|
hostname: '__DOMAIN__'
|
||||||
port: 443
|
port: 443
|
||||||
|
|
||||||
rates_limit:
|
rates_limit:
|
||||||
|
@ -36,9 +36,9 @@ trust_proxy:
|
||||||
database:
|
database:
|
||||||
hostname: 'localhost'
|
hostname: 'localhost'
|
||||||
port: 5432
|
port: 5432
|
||||||
suffix: '___db_name__'
|
suffix: '___DB_NAME__'
|
||||||
username: '__db_name__'
|
username: '__DB_NAME__'
|
||||||
password: '__db_pwd__'
|
password: '__DB_PWD__'
|
||||||
pool:
|
pool:
|
||||||
max: 5
|
max: 5
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ smtp:
|
||||||
tls: false # If you use StartTLS: false
|
tls: false # If you use StartTLS: false
|
||||||
disable_starttls: true
|
disable_starttls: true
|
||||||
ca_file: null # Used for self signed certificates
|
ca_file: null # Used for self signed certificates
|
||||||
from_address: 'webmaster@__domain__'
|
from_address: 'webmaster@__DOMAIN__'
|
||||||
|
|
||||||
email:
|
email:
|
||||||
body:
|
body:
|
||||||
|
@ -70,18 +70,18 @@ email:
|
||||||
|
|
||||||
# From the project root directory
|
# From the project root directory
|
||||||
storage:
|
storage:
|
||||||
tmp: '/home/yunohost.app/__app__/storage/tmp/' # Use to download data (imports etc), store uploaded files before processing...
|
tmp: '/home/yunohost.app/__APP__/storage/tmp/' # Use to download data (imports etc), store uploaded files before processing...
|
||||||
avatars: '/home/yunohost.app/__app__/storage/avatars/'
|
avatars: '/home/yunohost.app/__APP__/storage/avatars/'
|
||||||
videos: '/home/yunohost.app/__app__/storage/videos/'
|
videos: '/home/yunohost.app/__APP__/storage/videos/'
|
||||||
streaming_playlists: '/home/yunohost.app/__app__/storage/streaming-playlists/'
|
streaming_playlists: '/home/yunohost.app/__APP__/storage/streaming-playlists/'
|
||||||
redundancy: '/home/yunohost.app/__app__/storage/videos/'
|
redundancy: '/home/yunohost.app/__APP__/storage/videos/'
|
||||||
logs: '/home/yunohost.app/__app__/storage/logs/'
|
logs: '/home/yunohost.app/__APP__/storage/logs/'
|
||||||
previews: '/home/yunohost.app/__app__/storage/previews/'
|
previews: '/home/yunohost.app/__APP__/storage/previews/'
|
||||||
thumbnails: '/home/yunohost.app/__app__/storage/thumbnails/'
|
thumbnails: '/home/yunohost.app/__APP__/storage/thumbnails/'
|
||||||
torrents: '/home/yunohost.app/__app__/storage/torrents/'
|
torrents: '/home/yunohost.app/__APP__/storage/torrents/'
|
||||||
captions: '/home/yunohost.app/__app__/storage/captions/'
|
captions: '/home/yunohost.app/__APP__/storage/captions/'
|
||||||
cache: '/home/yunohost.app/__app__/storage/cache/'
|
cache: '/home/yunohost.app/__APP__/storage/cache/'
|
||||||
plugins: '/home/yunohost.app/__app__/storage/plugins/'
|
plugins: '/home/yunohost.app/__APP__/storage/plugins/'
|
||||||
|
|
||||||
log:
|
log:
|
||||||
level: 'info' # debug/info/warning/error
|
level: 'info' # debug/info/warning/error
|
||||||
|
@ -186,7 +186,7 @@ cache:
|
||||||
admin:
|
admin:
|
||||||
# Used to generate the root user at first startup
|
# Used to generate the root user at first startup
|
||||||
# And to receive emails from the contact form
|
# And to receive emails from the contact form
|
||||||
email: '__email__'
|
email: '__EMAIL__'
|
||||||
|
|
||||||
contact_form:
|
contact_form:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
@ -148,13 +148,16 @@ chown -R "$app":"$app" "$datadir"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
cp ../conf/production.yaml "$final_path/config/production.yaml"
|
cp ../conf/production.yaml "$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__domain__" --replace_string="$domain" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__db_name__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__app__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__db_pwd__" --replace_string="$db_pwd" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__email__" --replace_string="$admin_email" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__EMAIL__" --replace_string="$admin_email" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/production.yaml"
|
||||||
|
|
||||||
|
#Create the admin settings file
|
||||||
|
cp ../conf/local-production.json "$final_path/config/local-production.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# FIX NGINX DOMAIN CONFIGURATION
|
# FIX NGINX DOMAIN CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -167,11 +167,11 @@ ynh_backup_if_checksum_is_different --file="$final_path/config/local-production.
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/config/production.yaml"
|
ynh_backup_if_checksum_is_different --file="$final_path/config/production.yaml"
|
||||||
|
|
||||||
cp ../conf/production.yaml "$final_path/config/production.yaml"
|
cp ../conf/production.yaml "$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__domain__" --replace_string="$domain" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__db_name__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__app__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__db_pwd__" --replace_string="$db_pwd" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__email__" --replace_string="$admin_email" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__EMAIL__" --replace_string="$admin_email" --target_file="$final_path/config/production.yaml"
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/production.yaml"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/production.yaml"
|
||||||
|
|
||||||
# Recalculate and store the checksum of the file for the next upgrade.
|
# Recalculate and store the checksum of the file for the next upgrade.
|
||||||
|
|
Loading…
Reference in a new issue