mirror of
https://github.com/YunoHost-Apps/conduit_ynh.git
synced 2024-09-03 18:16:30 +02:00
fix confusion
This commit is contained in:
parent
19a69e2824
commit
170268fff0
4 changed files with 6 additions and 11 deletions
|
@ -31,7 +31,7 @@ max_request_size = 20_000_000 # in bytes
|
|||
# Enables registration. If set to false, no users can register on this server.
|
||||
allow_registration = __REGISTRATION__
|
||||
|
||||
allow_federation = __DISABLE_FEDERATION__
|
||||
allow_federation = __FEDERATION__
|
||||
allow_check_for_updates = true
|
||||
|
||||
# Server to get public keys from. You probably shouldn't change this
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
location /.well-known/matrix/server {
|
||||
return 200 '{"m.server": "__DOMAIN__:443"}';
|
||||
add_header Content-Type application/json;
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
}
|
|
@ -13,10 +13,10 @@ name = "Conduit configuration"
|
|||
no = "false"
|
||||
bind = "allow_registration:/var/www/__APP__/conduit.toml"
|
||||
|
||||
[main.registration.disable_federation]
|
||||
ask = "Disable Federation"
|
||||
[main.registration.federation]
|
||||
ask = "Allow Federation"
|
||||
type = "boolean"
|
||||
yes = "true"
|
||||
no = "false"
|
||||
help = "Do not communicate with other homeservers of the Matrix Federation."
|
||||
help = "Communicate with other homeservers of the Matrix Federation."
|
||||
bind = "allow_federation:/var/www/__APP__/conduit.toml"
|
||||
|
|
|
@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
#server_name=$YNH_APP_ARG_SERVER_NAME
|
||||
registration=$YNH_APP_ARG_REGISTRATION
|
||||
disable_federation="true"
|
||||
federation="true"
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
|
@ -23,7 +23,7 @@ disable_federation="true"
|
|||
|
||||
#ynh_app_setting_set --app=$app --key=server_name --value=$server_name
|
||||
ynh_app_setting_set --app=$app --key=registration --value=$registration
|
||||
ynh_app_setting_set --app=$app --key=disable_federation --value=$disable_federation
|
||||
ynh_app_setting_set --app=$app --key=federation --value=$federation
|
||||
|
||||
#=================================================
|
||||
# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
|
||||
|
|
Loading…
Add table
Reference in a new issue