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.
Default localhost:8000
Defines the hostname.
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:
database://username:password@host:port/
Default: sqlite://
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: /var/lib/trytond/
The main language of the database that will be used for storage in the main table for translations.
Default: en_US
Defines size of various cache.
The number of record loaded kept in the cache of the list. It can be changed locally using the _record_cache_size key in Transaction.context.
Default: 2000
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. For example:
[table]
account.invoice.line = acc_inv_line
account.invoice.tax = acc_inv_tax
Activates SSL on all network protocols.
Note
SSL is activated by defining privatekey. Please refer to SSL-CERT on how to use private keys and certficates.
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
Default: smtp://localhost:25
Defines the default From address for emails sent by Tryton.
The server password used to authenticate from the client for database management tasks. It is encrypted using using the Unix crypt(3) routine. A 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)))'