Advertisement
Guest User

Untitled

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