Advertisement
Guest User

Untitled

a guest
Feb 7th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.09 KB | None | 0 0
  1. # /etc/tryton/trytond.conf - Configuration file for Tryton Server
  2.  
  3. # (trytond, trytond-admin, trytond-cron)
  4.  
  5. #
  6.  
  7. # This file contains the most common settings for trytond (Defaults
  8.  
  9. # are commented).
  10.  
  11. # For more information install the tryton-server-doc package and read
  12.  
  13. # /usr/share/doc/tryton-server-doc/html/index.html
  14.  
  15. # and accordingly
  16.  
  17. # /usr/share/doc/tryton-server-doc/html/topics/configuration.html
  18.  
  19.  
  20.  
  21. [web]
  22.  
  23. # Settings for the web interface
  24.  
  25.  
  26.  
  27. # The IP/host and port number of the interface
  28.  
  29. # (Internal default: localhost:8000)
  30.  
  31. #
  32.  
  33. # Listen on all interfaces (IPv4)
  34.  
  35. #listen = 0.0.0.0:8000
  36.  
  37. listen = 192.168.178.150:8000
  38.  
  39. #listen = 192.168.178.144:8000
  40.  
  41. #
  42.  
  43. # Listen on all interfaces (IPv4 and IPv6)
  44.  
  45. # listen = [:::]:8000
  46.  
  47. root = ~/trytond/sao
  48.  
  49. hostname = localhost
  50.  
  51. listen = 0.0.0.0:8000
  52.  
  53.  
  54.  
  55. # The hostname for this interface
  56.  
  57. #hostname =
  58.  
  59.  
  60.  
  61. # The root path to retrieve data for GET requests
  62.  
  63. # (i.e. namely the path to the web client)
  64.  
  65. # (Internal default: /var/www/localhost/tryton)
  66.  
  67. root = /usr/share/tryton-sao/www
  68.  
  69.  
  70.  
  71. # The number of proxy servers in front of trytond.
  72.  
  73. #num_proxies = 0
  74.  
  75.  
  76.  
  77. [database]
  78.  
  79. # Database related settings
  80.  
  81.  
  82.  
  83. # The URI to connect to the SQL database (following RFC-3986)
  84.  
  85. # uri = database://username:password@host:port/
  86.  
  87. # (Internal default: sqlite:// (i.e. a local SQLite database))
  88.  
  89. #
  90.  
  91. # PostgreSQL via Unix domain sockets
  92.  
  93. # (e.g. PostgreSQL database running on the same machine (localhost))
  94.  
  95. #uri = postgresql://tryton:tryton@/
  96.  
  97. #
  98.  
  99. # PostgreSQL via TCP/IP
  100.  
  101. # (e.g. connecting to a PostgreSQL database running on a remote machine or
  102.  
  103. # by means of md5 authentication. Needs PostgreSQL to be configured to accept
  104.  
  105. # those connections (pg_hba.conf).)
  106.  
  107. #uri = postgresql://tryton:tryton@localhost:5432/
  108.  
  109. uri = postgresql://tryton_test:tryton_test@localhost:5432/
  110.  
  111.  
  112.  
  113. # The path to the directory where the Tryton Server stores files.
  114.  
  115. # The server must have write permissions to this directory.
  116.  
  117. # (Internal default: /var/lib/trytond)
  118.  
  119. path = /var/lib/tryton
  120.  
  121.  
  122.  
  123. # Shall available databases be listed in the client?
  124.  
  125. #list = True
  126.  
  127.  
  128.  
  129. # The number of retries of the Tryton Server when there are errors
  130.  
  131. # in a request to the database
  132.  
  133. #retry = 5
  134.  
  135.  
  136.  
  137. # The primary language, that is used to store entries in translatable
  138.  
  139. # fields in the database.
  140.  
  141. #language = en
  142.  
  143.  
  144.  
  145. [request]
  146.  
  147. # The maximum size in bytes for unauthenticated requests (zero means no limit).
  148.  
  149. #max_size = 2MB
  150.  
  151.  
  152.  
  153. # The maximum size in bytes of an authenticated request (zero means no limit).
  154.  
  155. #max_size_authenticated = 2GB
  156.  
  157.  
  158.  
  159. [ssl]
  160.  
  161. # SSL settings
  162.  
  163. # Activation of SSL for all available protocols.
  164.  
  165. # Uncomment the following settings for key and certificate.
  166.  
  167. # SSL is activated by defining privatekey.
  168.  
  169.  
  170.  
  171. # The path to the private key
  172.  
  173. #privatekey = /etc/ssl/private/ssl-cert-snakeoil.key
  174.  
  175.  
  176.  
  177. # The path to the certificate
  178.  
  179. #certificate = /etc/ssl/certs/ssl-cert-snakeoil.pem
  180.  
  181.  
  182.  
  183. [session]
  184.  
  185. # Session settings
  186.  
  187.  
  188.  
  189. # A comma separated list of login methods to use for user authentication.
  190.  
  191. # By default, Tryton supports only the password method which compares the
  192.  
  193. # password entered by the user against a stored hash.
  194.  
  195. # Other modules may define other methods (please refer to their documentation).
  196.  
  197. # The methods are tested following the order of the list.
  198.  
  199. #authentications = password
  200.  
  201.  
  202.  
  203. # The time (in seconds) until a session expires.
  204.  
  205. #max_age = 2592000 # (30 days)
  206.  
  207.  
  208.  
  209. # The time (in seconds) until an inactive session is considered invalid for
  210.  
  211. # special internal tasks, thus requiring to re-confirm the session.
  212.  
  213. #timeout = 300 # (5 minutes)
  214.  
  215.  
  216.  
  217. # The maximal number of authentication attempts before the server answers
  218.  
  219. # unconditionally 'Too Many Requests'.
  220.  
  221. # The counting is done on all attempts over one period of timeout.
  222.  
  223. #max_attempt = 5
  224.  
  225.  
  226.  
  227. # The maximal number of authentication attempts from the same network before
  228.  
  229. # the server answers unconditionally 'Too Many Requests'.
  230.  
  231. # The counting is done on all attempts over a period of timeout.
  232.  
  233. #max_attempt_ip_network = 300
  234.  
  235.  
  236.  
  237. # The network prefix to apply on IPv4 addresses when counting authentication attempts.
  238.  
  239. #ip_network_4 = 32
  240.  
  241.  
  242.  
  243. # The network prefix to apply on IPv6 addresses when counting authentication attempts.
  244.  
  245. #ip_network_6 = 56
  246.  
  247.  
  248.  
  249. [password]
  250.  
  251. # The minimal length required for user passwords.
  252.  
  253. #length = 8
  254.  
  255.  
  256.  
  257. # The path to a file containing one forbidden password per line.
  258.  
  259. #forbidden =
  260.  
  261.  
  262.  
  263. # The ratio of non repeated characters for user passwords.
  264.  
  265. #entropy = 0.75
  266.  
  267.  
  268.  
  269. # The time (in seconds) until a reset password expires.
  270.  
  271. #reset_timeout = 86400 # (24h)
  272.  
  273.  
  274.  
  275. # The path to the INI file to load as CryptContext:
  276.  
  277. # <https://passlib.readthedocs.io/en/stable/narr/context-tutorial.html#loading-saving-a-cryptcontext>
  278.  
  279. # If no path is set, Tryton will use the schemes `bcrypt` or `pbkdf2_sha512`.
  280.  
  281. #passlib = None
  282.  
  283.  
  284.  
  285. [email]
  286.  
  287. # Mail settings
  288.  
  289.  
  290.  
  291. # The URI to connect to the SMTP server.
  292.  
  293. # Available protocols are:
  294.  
  295. # - smtp: simple SMTP
  296.  
  297. # - smtp+tls: SMTP with STARTTLS
  298.  
  299. # - smtps: SMTP with SSL
  300.  
  301. #uri = smtp://localhost:25
  302.  
  303.  
  304.  
  305. # The From address used by the Tryton Server to send emails.
  306.  
  307. #from = tryton@localhost
  308.  
  309.  
  310.  
  311. [attachment]
  312.  
  313. # Defines how to store the attachments
  314.  
  315. # A boolean value to store attachment in the FileStore.
  316.  
  317. #filestore=True
  318.  
  319.  
  320.  
  321. # The prefix to use with the FileStore.
  322.  
  323. #store_prefix = None
  324.  
  325.  
  326.  
  327. [bus]
  328.  
  329. # Allow clients to subscribe to bus channels (Boolean).
  330.  
  331. #allow_subscribe = False
  332.  
  333.  
  334.  
  335. # The time (in seconds) to keep the connection to the client open
  336.  
  337. # when using long polling for bus messages.
  338.  
  339. #long_polling_timeout = 300
  340.  
  341.  
  342.  
  343. # The time (in seconds) a message should be kept in the queue
  344.  
  345. # before being discarded.
  346.  
  347. #cache_timeout = 300
  348.  
  349.  
  350.  
  351. # The timeout (in seconds) for the select call when listening
  352.  
  353. # on a channel.
  354.  
  355. #select_timeout = 5
  356.  
  357.  
  358.  
  359. # Let the worker queue handle bus messages
  360.  
  361. #queue = False
  362.  
  363.  
  364.  
  365. # Define the class to use when queue is set to True
  366.  
  367. #class = trytond.bus.LongPollingBus
  368.  
  369.  
  370.  
  371. # Special Settings
  372.  
  373. [cache]
  374.  
  375. # Various cache size settings
  376.  
  377.  
  378.  
  379. # The number of different models kept in the cache per transaction.
  380.  
  381. #model = 200
  382.  
  383.  
  384.  
  385. # The number of loaded records kept in the cache. It can also be changed
  386.  
  387. # locally using the _record_cache_size key in Transaction.context.
  388.  
  389. #record = 2000
  390.  
  391.  
  392.  
  393. # The number of fields to load with eager Field.loading.
  394.  
  395. #field = 100
  396.  
  397.  
  398.  
  399. # The minimum number of seconds between two cleanings of the cache.
  400.  
  401. #clean_timeout = 300
  402.  
  403.  
  404.  
  405. [queue]
  406.  
  407. # Activate asynchronous processing of the tasks. Otherwise they are performed at the end of the requests.
  408.  
  409. #worker = False
  410.  
  411.  
  412.  
  413. [table]
  414.  
  415. # This section allows to override the default generated table names. The main purpose
  416.  
  417. # is to bypass name length limitations of a database backend.
  418.  
  419. # Examples:
  420.  
  421. #account.invoice.line = acc_inv_line
  422.  
  423. #account.invoice.tax = acc_inv_tax
  424.  
  425.  
  426.  
  427. # Module settings
  428.  
  429. #
  430.  
  431. # Some modules are reading configuration parameters from this
  432.  
  433. # configuration file. These settings only apply when those modules
  434.  
  435. # are installed.
  436.  
  437. #
  438.  
  439. [account_fr_chorus]
  440.  
  441. # The private key to communicate with the chorus service.
  442.  
  443. #privatekey =
  444.  
  445.  
  446.  
  447. # The certficate to communicate with the chorus service.
  448.  
  449. #certificate =
  450.  
  451.  
  452.  
  453. # Target URL of the Chorus service
  454.  
  455. #url = https://chorus-pro.gouv.fr:5443
  456.  
  457.  
  458.  
  459. [ldap_authentication]
  460.  
  461. # The LDAP URL to connect to the server following RFC-2255.
  462.  
  463. #uri = ldap://host:port/dn?attributes?scope?filter?extensions
  464.  
  465. # A basic default URL could look like
  466.  
  467. #uri = ldap://localhost:389/
  468.  
  469.  
  470.  
  471. # The LDAP password used to bind if needed.
  472.  
  473. #bind_pass =
  474.  
  475.  
  476.  
  477. # If the LDAP server is an Active Directory.
  478.  
  479. #active_directory = False
  480.  
  481.  
  482.  
  483. # The UID attribute for authentication.
  484.  
  485. #uid = uid
  486.  
  487.  
  488.  
  489. # If the user shall be created in the database in case it does not exist.
  490.  
  491. #create_user = False
  492.  
  493.  
  494.  
  495. [sms_authentication]
  496.  
  497. # The fully qualified name of the method to send SMS. It must take three
  498.  
  499. # arguments: text, to and from.
  500.  
  501. #
  502.  
  503. # - The sms method just sends a code via SMS to the user. This code can directly
  504.  
  505. # be used in the login dialog.
  506.  
  507. # - The password_sms method sends a code only after the user entered a valid
  508.  
  509. # password (two-factor authentication).
  510.  
  511. #
  512.  
  513. # Both methods require that the user has a *mobile* phone number defined
  514.  
  515. # otherwise he can not be authenticated with those methods.
  516.  
  517. #
  518.  
  519. # This method is required to send SMS.
  520.  
  521. #function =
  522.  
  523.  
  524.  
  525. # The number from which the SMS are sent.
  526.  
  527. #from =
  528.  
  529.  
  530.  
  531. # The length of the generated code.
  532.  
  533. #length = 6
  534.  
  535.  
  536.  
  537. # The time to live for the generated codes in seconds.
  538.  
  539. #ttl = 300
  540.  
  541.  
  542.  
  543. # The name used in the SMS text.
  544.  
  545. #name = Tryton
  546.  
  547.  
  548.  
  549. [product]
  550.  
  551. # The number of decimals with which the unit prices are stored
  552.  
  553. # in the database. The default value is 4.
  554.  
  555. # Warning: This setting can not be lowered once a database is created.
  556.  
  557. #price_decimal = 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement