mirror of
https://github.com/YunoHost-Apps/cinny_ynh.git
synced 2024-09-03 18:16:13 +02:00
Add default homeserver to Cinny's configuration
This commit is contained in:
parent
b875f06821
commit
009a56e2eb
3 changed files with 23 additions and 0 deletions
7
conf/cinny.json
Normal file
7
conf/cinny.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"defaultHomeserver": 0,
|
||||||
|
"homeserverList": [
|
||||||
|
"__DEFAULT_HOME_SERVER__"
|
||||||
|
],
|
||||||
|
"allowCustomHomeservers": true
|
||||||
|
}
|
|
@ -36,6 +36,14 @@ ram.runtime = "50M"
|
||||||
type = "path"
|
type = "path"
|
||||||
default = "/cinny"
|
default = "/cinny"
|
||||||
|
|
||||||
|
[install.default_home_server]
|
||||||
|
ask.en = "Choose a default Matrix server for Cinny's login"
|
||||||
|
ask.fr = "Choisissez un serveur Matrix par défault"
|
||||||
|
help.en = "If you're running your own homeserver with Synapse, Dendrite, or Conduit you probably want this to be your homeserver's domain."
|
||||||
|
type = "string"
|
||||||
|
example = "my-own-homeserver.tld"
|
||||||
|
default = "matrix.org"
|
||||||
|
|
||||||
[install.init_main_permission]
|
[install.init_main_permission]
|
||||||
help.en = "You will usually let visitors access Cinny so that anyone without a Yunohost account can log into Matrix."
|
help.en = "You will usually let visitors access Cinny so that anyone without a Yunohost account can log into Matrix."
|
||||||
help.fr = "Vous laisserez généralement les visiteurs accéder Cinny pour s'y connecter sans avoir de compte Yunohost."
|
help.fr = "Vous laisserez généralement les visiteurs accéder Cinny pour s'y connecter sans avoir de compte Yunohost."
|
||||||
|
|
|
@ -28,6 +28,14 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CINNY CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring Cinny..." --weight=1
|
||||||
|
|
||||||
|
# Copy over the Cinny configuration file
|
||||||
|
ynh_add_config --template="../conf/cinny.json" --destination="$install_dir/config.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue