root / trunk / sample-prod.cfg

Revision 39, 2.3 kB (checked in by tim, 5 years ago)

Upgrade to TG 1.0.1

Line 
1[global]
2# This is where all of your settings go for your production environment.
3# You'll copy this file over to your production server and provide it
4# as a command-line option to your start script.
5# Settings that are the same for both development and production
6# (such as template engine, encodings, etc.) all go in
7# cogplanet/config/app.cfg
8
9# DATABASE
10
11# driver://username:password@host:port/database
12
13# pick the form for your database
14# sqlalchemy.dburi="postgres://username@hostname/databasename"
15# sqlalchemy.dburi="mysql://username:password@hostname:port/databasename"
16# sqlalchemy.dburi="sqlite:///file_name_and_path"
17
18# If you have sqlite, here's a simple default to get you started
19# in development
20sqlalchemy.dburi="sqlite:///%(current_dir_uri)s/devdata.sqlite"
21
22
23# SERVER
24
25server.environment="production"
26
27# Sets the number of threads the server uses
28# server.thread_pool = 1
29
30# if this is part of a larger site, you can set the path
31# to the TurboGears instance here
32# server.webpath=""
33
34# session_filter.on = True
35
36# Set to True if you are deploying your App behind a proxy
37# e.g. Apache using mod_proxy
38# base_url_filter.on = False
39
40# Set to True if your proxy adds the x_forwarded_host header
41# base_url_filter.use_x_forwarded_host = True
42
43# If your proxy does not add the x_forwarded_host header, set
44# the following to the *public* host url.
45# (Note: This will be overridden by the use_x_forwarded_host option
46# if it is set to True and the proxy adds the header correctly.
47# base_url_filter.base_url = "http://www.example.com"
48
49# Set to True if you'd like to abort execution if a controller gets an
50# unexpected parameter. False by default
51# tg.strict_parameters = False
52
53# LOGGING
54# Logging configuration generally follows the style of the standard
55# Python logging module configuration. Note that when specifying
56# log format messages, you need to use *() for formatting variables.
57# Deployment independent log configuration is in cogplanet/config/log.cfg
58[logging]
59
60[[handlers]]
61
62[[[access_out]]]
63# set the filename as the first argument below
64args="('server.log',)"
65class='FileHandler'
66level='INFO'
67formatter='message_only'
68
69[[loggers]]
70[[[cogplanet]]]
71level='ERROR'
72qualname='cogplanet'
73handlers=['error_out']
74
75[[[access]]]
76level='INFO'
77qualname='turbogears.access'
78handlers=['access_out']
79propagate=0
Note: See TracBrowser for help on using the browser.