Configuration/en

De Goffiwiki
Aller à : navigation, rechercher


Loading paths

Salut à Toi accepts several configuration files that are read one by one in ascending priority (a later one can overwrite a previous one):

  • /etc/sat.conf
  • ~/sat.conf
  • ~/.sat.conf
  • <working_directory>/sat.conf
  • <working_directory>/.sat.conf
  • ~/.config/sat/sat.conf

The last path corresponds to the XDG recommandation.

Sample configuration

[DEFAULT]
media_dir = ~/workspace/sat_media
log_level = debug
xmpp_domain = example.net
admins_list = toto,titi
email_from = NOREPLY@example.net
email_server = localhost
# email_port =
# email_username =
# email_password =
# email_starttls = true
# email_auth = true
# email_admins_list = toto@example.net, titi@example.org
hosts_dict = {
    "example.org": {"host": "127.0.0.1"}
    }

[plugin account]
new_account_server = localhost
new_account_domain = example.net
new_account_resource = libervia
prosody_path = /home/dev/workspace/prosody-hg/
prosodyctl = prosodyctl

[plugin demo directory]
activate = 1

[plugin muc]
default_muc = sat@chat.jabberfr.org

[libervia]
connection_type = both
port = 8080
port_https = 8443
port_https_ext = 8443
tls_certificate = libervia.pem
redirect_to_https = 1
security_warning = 1
passphrase = <passphrase_for_libervia_profile>
data_dir = /usr/share/libervia

Parameters explanation

connection_type    'http', 'https' or 'both' (to launch both servers). [default: https]
port               The port number to listen HTTP on. [default: 8080]
port_https         The port number to listen HTTPS on. [default: 8443]
port_https_ext     The external port number used for HTTPS (0 means port_https value). [default: 0]
tls_private_key    TLS certificate private key (PEM format) [default: ]
tls_certificate    TLS public certificate or private key and public certificate combined (PEM format) [default: libervia.pem]
tls_chain          TLS certificate intermediate chain (PEM format) [default: ]
redirect_to_https  automatically redirect from HTTP to HTTPS. [default: 1]
security_warning   warn user that he is about to connect on HTTP. [default: 1]
passphrase         passphrase for the SàT profile named 'libervia'. [default: ""]
data_dir           Data directory for Libervia [default: ""]
hosts_dict         The domains in this dict will use the host specified in "host"
admins_list        Profiles of administrators