How to change your Libervia's domain name/en
This page explains how to add a domain that is associated to local Prosody and Libervia servers. It supposes that your servers are already configured and running.
If you are looking for installation instructions, have a look at wiki.goffi.org/wiki/Libervia/en.
Edit your prosody.cfg.lua file and duplicate the definition of your existing VirtualHost, just change in the copy the previous domain to the new one.
Component "sat-pubsub.example.net" component_secret = "password" Component "salut.example.net" component_secret = "password"
First you backup your /etc/bind and /var/cache/bind directories!
Use this script: 
It is made to change your domain name, not to add a new one, and it will mess up your actual bind9 configuration. It should not be used on production servers but only on your development machine with local servers!
To restore the previous domain names, normally you just need to open your backup of /etc/bind/named.conf.local and you copy/paste in the new file the zones for your previous domains. You can also check /var/cache/bind/revp.127.0.0 and reset the domain that is bound to 127.0.0.1.
If you want this new domain to be used while creating new Libervia accounts, modify the SàT configuration (probably in ~/.config/sat/sat.conf):
[plugin account] new_account_domain = example.net
If you want the blogging feature to work with the new domain, set the appropriate "jid" option when launching sat_pubsub:
twistd sat_pubsub --jid=sat-pubsub.example.net --secret=password