Advertisement
Guest User

Untitled

a guest
Feb 5th, 2020
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.37 KB | None | 0 0
  1. # /etc/tryton/trytond.conf - Configuration file for Tryton Server
  2. # (trytond, trytond-admin, trytond-cron)
  3. #
  4. # This file contains the most common settings for trytond (Defaults
  5. # are commented).
  6. # For more information install the tryton-server-doc package and read
  7. # /usr/share/doc/tryton-server-doc/html/index.html
  8. # and accordingly
  9. # /usr/share/doc/tryton-server-doc/html/topics/configuration.html
  10.  
  11. [web]
  12. # Settings for the web interface
  13.  
  14. # The IP/host and port number of the interface
  15. # (Internal default: localhost:8000)
  16. #
  17. # Listen on all interfaces (IPv4)
  18. #listen = 0.0.0.0:8000
  19. #
  20. # Listen on all interfaces (IPv4 and IPv6)
  21. #listen = [::]:8000
  22.  
  23. # The hostname for this interface
  24. #hostname =
  25.  
  26. # The root path to retrieve data for GET requests
  27. # (i.e. namely the path to the web client)
  28. # (Internal default: /var/www/localhost/tryton)
  29. root = /usr/share/tryton-sao/www
  30.  
  31. # The number of proxy servers in front of trytond.
  32. #num_proxies = 0
  33.  
  34. [database]
  35. # Database related settings
  36.  
  37. # The URI to connect to the SQL database (following RFC-3986)
  38. # uri = database://username:password@host:port/
  39. # (Internal default: sqlite:// (i.e. a local SQLite database))
  40. #
  41. # PostgreSQL via Unix domain sockets
  42. # (e.g. PostgreSQL database running on the same machine (localhost))
  43. #uri = postgresql://tryton:tryton@/
  44. #
  45. # PostgreSQL via TCP/IP
  46. # (e.g. connecting to a PostgreSQL database running on a remote machine or
  47. # by means of md5 authentication. Needs PostgreSQL to be configured to accept
  48. # those connections (pg_hba.conf).)
  49. #uri = postgresql://tryton:tryton@localhost:5432/
  50. uri = postgresql://tryton_test:tryton_test@localhost:5432/
  51.  
  52. # The path to the directory where the Tryton Server stores files.
  53. # The server must have write permissions to this directory.
  54. # (Internal default: /var/lib/trytond)
  55. path = /var/lib/tryton
  56.  
  57. # Shall available databases be listed in the client?
  58. #list = True
  59.  
  60. # The number of retries of the Tryton Server when there are errors
  61. # in a request to the database
  62. #retry = 5
  63.  
  64. # The primary language, that is used to store entries in translatable
  65. # fields in the database.
  66. #language = en
  67.  
  68. [request]
  69. # The maximum size in bytes for unauthenticated requests (zero means no limit).
  70. #max_size = 2MB
  71.  
  72. # The maximum size in bytes of an authenticated request (zero means no limit).
  73. #max_size_authenticated = 2GB
  74.  
  75. [ssl]
  76. # SSL settings
  77. # Activation of SSL for all available protocols.
  78. # Uncomment the following settings for key and certificate.
  79. # SSL is activated by defining privatekey.
  80.  
  81. # The path to the private key
  82. #privatekey = /etc/ssl/private/ssl-cert-snakeoil.key
  83.  
  84. # The path to the certificate
  85. #certificate = /etc/ssl/certs/ssl-cert-snakeoil.pem
  86.  
  87. [session]
  88. # Session settings
  89.  
  90. # A comma separated list of login methods to use for user authentication.
  91. # By default, Tryton supports only the password method which compares the
  92. # password entered by the user against a stored hash.
  93. # Other modules may define other methods (please refer to their documentation).
  94. # The methods are tested following the order of the list.
  95. #authentications = password
  96.  
  97. # The time (in seconds) until a session expires.
  98. #max_age = 2592000 # (30 days)
  99.  
  100. # The time (in seconds) until an inactive session is considered invalid for
  101. # special internal tasks, thus requiring to re-confirm the session.
  102. #timeout = 300 # (5 minutes)
  103.  
  104. # The maximal number of authentication attempts before the server answers
  105. # unconditionally 'Too Many Requests'.
  106. # The counting is done on all attempts over one period of timeout.
  107. #max_attempt = 5
  108.  
  109. # The maximal number of authentication attempts from the same network before
  110. # the server answers unconditionally 'Too Many Requests'.
  111. # The counting is done on all attempts over a period of timeout.
  112. #max_attempt_ip_network = 300
  113.  
  114. # The network prefix to apply on IPv4 addresses when counting authentication attempts.
  115. #ip_network_4 = 32
  116.  
  117. # The network prefix to apply on IPv6 addresses when counting authentication attempts.
  118. #ip_network_6 = 56
  119.  
  120. [password]
  121. # The minimal length required for user passwords.
  122. #length = 8
  123.  
  124. # The path to a file containing one forbidden password per line.
  125. #forbidden =
  126.  
  127. # The ratio of non repeated characters for user passwords.
  128. #entropy = 0.75
  129.  
  130. # The time (in seconds) until a reset password expires.
  131. #reset_timeout = 86400 # (24h)
  132.  
  133. # The path to the INI file to load as CryptContext:
  134. # <https://passlib.readthedocs.io/en/stable/narr/context-tutorial.html#loading-saving-a-cryptcontext>
  135. # If no path is set, Tryton will use the schemes `bcrypt` or `pbkdf2_sha512`.
  136. #passlib = None
  137.  
  138. [email]
  139. # Mail settings
  140.  
  141. # The URI to connect to the SMTP server.
  142. # Available protocols are:
  143. # - smtp: simple SMTP
  144. # - smtp+tls: SMTP with STARTTLS
  145. # - smtps: SMTP with SSL
  146. #uri = smtp://localhost:25
  147.  
  148. # The From address used by the Tryton Server to send emails.
  149. #from = tryton@localhost
  150.  
  151. [attachment]
  152. # Defines how to store the attachments
  153. # A boolean value to store attachment in the FileStore.
  154. #filestore=True
  155.  
  156. # The prefix to use with the FileStore.
  157. #store_prefix = None
  158.  
  159. [bus]
  160. # Allow clients to subscribe to bus channels (Boolean).
  161. #allow_subscribe = False
  162.  
  163. # The time (in seconds) to keep the connection to the client open
  164. # when using long polling for bus messages.
  165. #long_polling_timeout = 300
  166.  
  167. # The time (in seconds) a message should be kept in the queue
  168. # before being discarded.
  169. #cache_timeout = 300
  170.  
  171. # The timeout (in seconds) for the select call when listening
  172. # on a channel.
  173. #select_timeout = 5
  174.  
  175. # Let the worker queue handle bus messages
  176. #queue = False
  177.  
  178. # Define the class to use when queue is set to True
  179. #class = trytond.bus.LongPollingBus
  180.  
  181.  
  182. # Special Settings
  183. [cache]
  184. # Various cache size settings
  185.  
  186. # The number of different models kept in the cache per transaction.
  187. #model = 200
  188.  
  189. # The number of loaded records kept in the cache. It can also be changed
  190. # locally using the _record_cache_size key in Transaction.context.
  191. #record = 2000
  192.  
  193. # The number of fields to load with eager Field.loading.
  194. #field = 100
  195.  
  196. # The minimum number of seconds between two cleanings of the cache.
  197. #clean_timeout = 300
  198.  
  199. [queue]
  200. # Activate asynchronous processing of the tasks. Otherwise they are performed at the end of the requests.
  201. #worker = False
  202.  
  203. [table]
  204. # This section allows to override the default generated table names. The main purpose
  205. # is to bypass name length limitations of a database backend.
  206. # Examples:
  207. #account.invoice.line = acc_inv_line
  208. #account.invoice.tax = acc_inv_tax
  209.  
  210.  
  211. # Module settings
  212. #
  213. # Some modules are reading configuration parameters from this
  214. # configuration file. These settings only apply when those modules
  215. # are installed.
  216. #
  217. [account_fr_chorus]
  218. # The private key to communicate with the chorus service.
  219. #privatekey =
  220.  
  221. # The certficate to communicate with the chorus service.
  222. #certificate =
  223.  
  224. # Target URL of the Chorus service
  225. #url = https://chorus-pro.gouv.fr:5443
  226.  
  227. [ldap_authentication]
  228. # The LDAP URL to connect to the server following RFC-2255.
  229. #uri = ldap://host:port/dn?attributes?scope?filter?extensions
  230. # A basic default URL could look like
  231. #uri = ldap://localhost:389/
  232.  
  233. # The LDAP password used to bind if needed.
  234. #bind_pass =
  235.  
  236. # If the LDAP server is an Active Directory.
  237. #active_directory = False
  238.  
  239. # The UID attribute for authentication.
  240. #uid = uid
  241.  
  242. # If the user shall be created in the database in case it does not exist.
  243. #create_user = False
  244.  
  245. [sms_authentication]
  246. # The fully qualified name of the method to send SMS. It must take three
  247. # arguments: text, to and from.
  248. #
  249. # - The sms method just sends a code via SMS to the user. This code can directly
  250. # be used in the login dialog.
  251. # - The password_sms method sends a code only after the user entered a valid
  252. # password (two-factor authentication).
  253. #
  254. # Both methods require that the user has a *mobile* phone number defined
  255. # otherwise he can not be authenticated with those methods.
  256. #
  257. # This method is required to send SMS.
  258. #function =
  259.  
  260. # The number from which the SMS are sent.
  261. #from =
  262.  
  263. # The length of the generated code.
  264. #length = 6
  265.  
  266. # The time to live for the generated codes in seconds.
  267. #ttl = 300
  268.  
  269. # The name used in the SMS text.
  270. #name = Tryton
  271.  
  272. [product]
  273. # The number of decimals with which the unit prices are stored
  274. # in the database. The default value is 4.
  275. # Warning: This setting can not be lowered once a database is created.
  276. #price_decimal = 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement