Configuration file for Tryton¶
The configuration file controls 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 web interface.
Defines the couple of host (or IP address) and port number separated by a colon to listen on.
Defines the hostname.
Defines the root path served by GET requests.
Default: Under the www directory of user’s home running trytond.
Defines how the database is managed.
Contains the URI to connect to the SQL database. The URI follows the RFC-3986. The typical form is:
The 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 stores files and so the user running trytond must have write access on this directory.
Default: The db folder under the user home directory running trytond.
A boolean value to list available databases.
The number of retries when a database operational error occurs during a request.
The main language of the database that will be used for storage in the main table for translations.
Defines size of various cache.
The number of different model kept in the cache per transaction.
The number of record loaded kept in the cache of the list.
It can be changed locally using the _record_cache_size key in
The number of field to load with an eager
This section allows to override the default generated table name for a
ModelSQL. The main goal is to bypass limitation on the name length of
the database backend.
[table] account.invoice.line = acc_inv_line account.invoice.tax = acc_inv_tax
Activates SSL on all network protocols.
The path to the private key.
The path to the certificate.
- smtp: simple SMTP
- smtp+tls: SMTP with STARTTLS
- smtps: SMTP with SSL
The uri accepts the following additional parameters:
- local_hostname: used as FQDN of the local host in the HELO/EHLO commands, if omited it will use the value of socket.getfqdn().
- timeout: A number of seconds used as timeout for blocking operations. A socket.timeout will be raised when exceeded. If omited the default timeout will be used.
Defines the default From address for emails sent by Tryton.
A comma separated list of login methods to use to authenticate the user. By default, Tryton supports only the password method which compare the password entered by the user against a stored hash. But other modules can define new methods (please refers to their documentation). The methods are tested following the order of the list.
The time in seconds until a session expires.
The maximum authentication attempt before the server answers unconditionally Too Many Requests for any other attempts. The counting is done on all attempts over a period of timeout.
The minimal length required for the user password.
The path to a file containing one forbidden password per line.
The ratio of non repeated characters for the user password.
The parameters for unoconv.