Advanced
Private TURN servers
In topologies where both sides are behind a symmetric or carrier-grade NAT (CGNAT), establishing a peer-to-peer connection using the built-in STUN functionality fails. This is where private TURN servers come into play: You can add up to two different TURN servers - they are only required on the assistant side.
host:port:user:password or [ipv6]:port:user:password.
You do not need to run your own TURN server; for example, ExpressTURN offers TURN servers with up to 1,000 GB of traffic per month for free! For even more restricted environments, they also offer a premium plan, with servers running at port 80 and 443.
TURN vs TURNS: Using TURN is perfectly safe, as Dayon! encripts all its traffic end-to-end (RSA-4096, TLS1.3).
Automatic connection of the assisted via command line
The host name or IP address and port of the assistant can be passed via command line parameters, where ah=host or IP address, and ap=port number:
dayon_assisted.sh ah=an.example.com ap=4242(Linux/macOS)dayon.assisted ah=an.example.com ap=4242(Linux Snap)./assisted.sh ah=an.example.com ap=4242(Linux Quick Launch)java -jar dayon.jar ah=an.example.com ap=4242(Windows/Linux/macOS)assisted.exe ah=an.example.com ap=4242(Windows Quick Launch)
If the assisted is started with these example parameters, it connects directly to the host "an.example.com" and port "4242".
Configuring Dayon! using configuration file
Since version v11.0.5, the connection parameters can be stored in a configuration YAML file.
This makes it possible to override user settings since the configuration from the YAML is always read and evaluated on start up. Users can make changes inside the application, but these only last until the next start if a YAML configuration is in place.
The primary use case for YAML configurations would be for organisations that want to use a self-hosted token server instead of the public token server, or want to specify a particular host that the assisted should automatically connect to on startup.
Assisted
The structure of theassisted.yaml is extremely simple:
host: "an.example.com" port: 8080 # autoConnect: false # tokenServerUrl: "https://example.org/token/"
- To prevent the assisted from automatically connecting right after the start, in
assisted.yamljust uncomment the following line:
# autoConnect: false - To make assisted use other token server than the default public token server, in
assisted.yaml, just uncomment the following line and set the appropriate URL:
# tokenServerUrl: https://example.org/token/
Important: make sure to use the same server as the assistant!
You can also define multiple token servers; in this case, you can select the token server to use in the UI. By default, the first one is used:
# backupTokenServerUrls: [https://example.com/rvs/,https://example.net/rvs/]
Assistant
Theassistant.yaml is similar:
- To make assistant use other token server than the default public token server, in
assistant.yaml, just uncomment the following line and set the appropriate URL:
# tokenServerUrl: "https://example.org/token/"
Important: make sure to use the same server as the assisted!
You can also define multiple token servers; in this case, you can select the token server to use in the UI. By default, the first one is used:
# backupTokenServerUrls: [https://example.com/rvs/,https://example.net/rvs/]
assisted.yaml and assistant.yaml either in the Dayon! home directory,
in the user directory, or in the same directory as the .jar, resp. .exe file.
This order also corresponds to the priority with which they are taken into account in the case of multiple configurations exist. (first one wins)
How to run a custom token server (RVS)
Prerequisites
- PHP 7.4 or higher with SQLite extension
- webserver (Apache, Nginx, etc.)
Setup
- put the index.php file into a webservers directory which runs PHP with the SQLite extension
- either also put the empty dayon.db database file into the same directory or let it be generated for you when the first token is being generated
- make sure the webserver has write access to the database file
- for security reasons, ensure that the database file can not be downloaded (e.g. via .htaccess)
Public token servers
Below you find a list of available public token servers that are free to use.
Check the availability of a token server by clicking on its link. If a version number is displayed directly, it is active.
