1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ergo_ynh.git synced 2024-09-03 18:26:31 +02:00

added support for network+server name

This commit is contained in:
navanchauhan 2022-06-01 23:03:15 -06:00
parent a8f4c9af35
commit b52652ebf9
2 changed files with 7 additions and 3 deletions

View file

@ -25,12 +25,12 @@
# network configuration
network:
# name of the network
name: ErgoYunoHost
name: __NETWORK_NAME__
# server configuration
server:
# server name
name: ergo.YunoHost
name: __SERVER_NAME__
# addresses to listen on
listeners:
@ -111,7 +111,7 @@ server:
duration: 1mo2d5m
# tls port - you should be listening on this port above
port: 6697
port: __SECURE_PORT__
# should clients include this STS policy when they ship their inbuilt preload lists?
preload: false

View file

@ -29,6 +29,8 @@ path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE
architecture=$YNH_ARCH
network_name=$YNH_APP_ARG_NETWORK_NAME
server_name=$YNH_APP_ARG_SERVER_NAME
app=$YNH_APP_INSTANCE_NAME
@ -51,6 +53,8 @@ ynh_script_progression --message="Storing installation settings..." --time --wei
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=language --value=$language
ynh_app_setting_set --app=$app --key=network_name --value=$network_name
ynh_app_setting_set --app=$app --key=server_name --value=$server_name
#=================================================
# STANDARD MODIFICATIONS