On Saturday, 28 February 2015 21:04:51 UTC+7, Axel Braun wrote:
>
> Hi Chris, 
>
> Am Montag, 23. Februar 2015, 21:11:54 schrieb Chris Larsen: 
>
> > I think that Tryton should stick to the time-honoured practice of having 
> a 
> > trytond.config.sample file made available, which is documented and 
> > commented, and users can copy it and modify their working version. Doing 
> > such a sample file is actually less work than writing extensive wiki 
> > documentation. We should make it easier, not harder, for users to use 
> this 
> > splendid ERP infrastructure! 
>
> That helps, indeed, nevertheless you should read the docs to make sure you 
> understand what you are doing. 
>
> For the openSUSE packages I added a trytond.conf.example, updated tryton- 
> server.README.SUSE (can be found in /usr/share/doc/packages/trytond) and 
> as 
> well updated the wiki in 
> https://code.google.com/p/tryton/wiki/InstallationonopenSUSE 
>
> This should give a guidance on when an encrypted password is required - 
> and 
> when not. 
>
> HTH 
> axel 
>
>
>
> Dear All,
>

As I run trytond (for ERP, with GNU Health and the Occhiolino LIMS) in 
different virtualenv instances, and inside FreeBSD jails, trytond does  
actually not run out of the box, or rather only in a simplistic localhost 
install. I blindly assume that the latter may not be everyone's idela 
installation modus.
Therefore, allow me to add a sampe configuration file that - as I hope - 
accommodates the latest current confiuguration version. By copying this 
trytond.conf.sample to your own tryton.conf, or, optionally, 
trytond_[instance].conf, and by editing those options that are non-default 
in your given setting, you should be ready to run! Here we go:

# trytond configuration file
# Defaults are provided, and can be overridden as required
 
[jsonrpc]
# Defines the behavior of the JSON-RPC network interface
#
# Defines a comma separated list of couple of host (or IP address) and port 
numer separeted by a colon to listen on
#listen = localhost:8000
# This is the hostname used when generating tryton URI
#hostname =
# Configure the path of json-rpc data
#data = /var/www/localhost/tryton
 
[xmlrpc]
# Defines the behaviour of the XML-RPC interface
#
# Defines a comma separated list of couple of host (or IP address) and port 
numer separeted by a colon to listen on
#listen =
 
[webdav]
# Defines the behaviour of the WebDAV interface
#
# Defines a comma separated list of couple of host (or IP address) and port 
numer separeted by a colon to listen on
#listen =
 
[database]
# Defines how database is managed
#
# Contains the URI to connect to the SQL database
# Syntax: database://username:password@host:port/
# The available databases are: postgresql://, mysql://, sqlite://
# pyscopg2 supports two type of connections:
#   TCP/IP connection: postgresql://user:password@localhost:5432/
#   Unix domain connection: postgresql://username:password@/
#uri =
# The directory where Tryton should store files and so the user running trytond 
must have write access on this directory
#path = /var/lib/trytond
# A boolean value to list available databases
#list = True
# The number of retries when a database operation error occurs during a request
#retry =
# The main language of the database that will be stored in the main table for 
translatable fields
#language = en_US
 
[ssl]
# Activates SSL on all network protocol
#
# The path to hte private key
#privatekey =
# The path to the certificate
#certificate =
 
[email]
# The SMTP-URL to connect to the SMTP server which is extended to support SSL 
and STARTTLS
# The available protocols are:
#   smtp: simple SMTP
#   smtp+tls: SMTP with STARTTLS
#   smtps: SMTP with SSL
#uri = smtp://localhost:25
# Defines the default From address when Tryton send emails
#from =
 
[session]
# Configure session handling
#
# The time in second before a session expires
#timeout = 600
# The server password uses to authenticate database management from the client
# It is encrypted using using the Unix crypt(3) routine
# Such password can be generated using this command line
#   python -c 'import getpass,crypt,random,string; print 
crypt.crypt(getpass.getpass(), "".join(random.sample(string.ascii_letters + 
string.digits, 8)))'
# Configure the Tryton server password
#super_pwd =
 
[report]
# Configure parameters for report creation using Libre-/OpenOffice
#
# unoconv connection parameters
#unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext


Please note the important comment regarding the superuser password. I think 
this is where many new users got stuck - the configuriation file accepts 
the password hash, *not* the cleartext password.
Hope this helps!

Cheers,

Chris

Reply via email to