Advertisement
Guest User

Untitled

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