The configuration file control some aspects of the behavior of Tryton. The file uses a simple ini-file format. It consists of sections, led by a [section] header and followed by name = value entries:
[database] uri = postgresql://user:password@localhost/ path = /var/lib/trytond
For more information see ConfigParser.
This section describes the different main sections that may appear in a Tryton configuration file, the purpose of each section, its possible keys, and their possible values. Some modules could request the usage of other sections for which the guideline asks them to be named like their module.
Defines the behavior of the JSON-RPC network interface.
Defines a comma separated list of couple of host (or IP address) and port numer separeted by a colon to listen on. The default value is localhost:8000.
Defines the hostname for this network interface.
Defines the root path to retrieve data for GET request.
Defines the behavior of the XML-RPC network interface.
Same as for jsonrpc except it have no default value.
Define the behavior of the WebDAV network interface.
Same as for jsonrpc except it have no default value.
Defines how database is managed.
Contains the URI to connect to the SQL database. The URI follows the RFC-3986. The typical form is:
database://username:password@host:port/
The default available databases are:
pyscopg2 supports two type of connections:
- TCP/IP connection: postgresql://user:password@localhost:5432/
- Unix domain connection: postgresql://username:password@/
The only possible URI is: sqlite://
Same as for PostgreSQL.
The directory where Tryton should store files and so the user running trytond must have write access on this directory. The default value is /var/lib/trytond/.
A boolean value (default: True) to list available databases.
The number of retries when a database operation error occurs during a request.
The main language (default: en_US) of the database that will be stored in the main table for translatable fields.
Activates the SSL on all network protocol.
The path to the private key.
The path to the certificate.
The SMTP-URL to connect to the SMTP server which is extended to support SSL and STARTTLS. The available protocols are:
- smtp: simple SMTP
- smtp+tls: SMTP with STARTTLS
- smtps: SMTP with SSL
The default value is: smtp://localhost:25
Defines the default From address when Tryton send emails.
The time in second before a session expires.
Theserver password uses to authenticate database management from the client. It is encrypted using using the Unix crypt(3) routine. Such password can be generated using this command line:
python -c 'import getpass,crypt,random,string; print crypt.crypt(getpass.getpass(), "".join(random.sample(string.ascii_letters + string.digits, 8)))'