# This is where all of your settings go for your production environment # NOTE: Your configuration will not work if you have a space at the # beginning of the line. [global] # DATABASE # pick the form for your database # sqlobject.dburi="postgres://username@hostname/databasename" # sqlobject.dburi="mysql://username:password@hostname:port/databasename" # sqlobject.dburi="sqlite:///file_name_and_path" # if you are using a database or table type without transactions # (MySQL default, for example), you should turn off transactions # by prepending notrans_ on the uri # sqlobject.dburi="notrans_mysql://username:password@hostname:port/databasename" # for Windows users, sqlite URIs look like: # sqlobject.dburi="sqlite:///drive_letter|/path/to/file" # VIEW # which view (template engine) to use if one is not specified in the # template name # tg.defaultview = "kid" # kid.outputformat="html" # kid.encoding="utf-8" # The sitetemplate is used for overall styling of a site that # includes multiple TurboGears applications # tg.sitetemplate="" # Allow every exposed function to be called as json # tg.allow_json = False # Set to True if you'd like all of your pages to include MochiKit # tg.mochikit_all = False # Server configuration server.environment="production" server.logFile="server.log" server.logToScreen=False # Sets the number of threads the server uses # server.threadPool = 1 # if this is part of a larger site, you can set the path # to the TurboGears instance here # server.webpath="" ### # IDENTITY # # General configuration of the TurboGears Identity management module ### # Switch to turn on or off the Identity management module identity.on=False # [REQUIRED] URL to which CherryPy will internally redirect when an access # control check fails. If Identity management is turned on, a value for this # option must be specified. # identity.failure_url=None # The IdentityProvider to use -- defaults to the SqlObjectIdentityProvider which # pulls User, Group, and Permission data out of your model database. # identity.provider="turbogears.identity.provider.soprovider.SqlObjectIdentityProvider" # Number of seconds an Identity session should last before expiring. Set to None # to prevent the identity session from ever expiring. # identity.session.timeout=1200 # The name of the signed cookie to transmit to the visitor's browser. # identity.session.cookie.name="identity" # Host name to specify when setting the cookie # identity.session.cookie.host=None # Specific path for the cookie # identity.session.cookie.path="/" # Cookie expiration (distinct from session expiration). If not present, cookie # will be set to expire when the browser is closed. # identity.session.cookie.timeout=None # The names of the fields on the login form containing the visitor's user ID # and password. In addition, the submit button is specified simply so its # existence may be stripped out prior to passing the form data to the target # controller. # identity.form.user_name="user_name" # identity.form.password="password" # identity.form.submit="login" # What sources should the identity provider consider when determining the # identity associated with a request? Comma separated list of identity sources. # Valid sources: form, cookie, http_auth # identity.source="form,cookie,http_auth" ### # Configuration options for the default SqlObjectIdentityProvider ### # The module providing the data model. # identity.soprovider.model="turbogears.identity.model.somodel" # The names of the data model classes. # identity.soprovider.model.user="turbogears.User" # identity.soprovider.model.group="turbogears.Group" # identity.soprovider.model.permission="turbogears.Permission" # identity.soprovider.model.secret_token="turbogears.SecretToken" # The password encryption algorithm used when comparing passwords against what's # stored in the database. Valid values are 'md5' or 'sha1'. If you do not # specify an encryption algorithm, passwords are expected to be clear text. # # The SqlObjectProvider *will* encrypt passwords supplied as part of your login # form, but it is *your* responsibility to make certain the database contains # passwords encrypted using this algorithm. To make life easier you can call # turbogears.identity.current_provider.encrypt_password( pw ) # to encrypt a password using the algorithm of the current provider. # identity.soprovider.encryption_algorithm=None [/static] staticFilter.on = True staticFilter.dir = "static" [/favicon.ico] staticFilter.on = True staticFilter.file = "static/images/favicon.ico"