Advertisement
Guest User

Untitled

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