| 172 |
ashish |
1 |
#
|
|
|
2 |
# Wiki-20 - TurboGears configuration
|
|
|
3 |
#
|
|
|
4 |
# The %(here)s variable will be replaced with the parent directory of this file
|
|
|
5 |
#
|
|
|
6 |
[DEFAULT]
|
|
|
7 |
# WARGING == If debug is not set to false, you'll get the interactive
|
|
|
8 |
# debugger on production, which is a huge security hole.
|
|
|
9 |
|
|
|
10 |
debug = false
|
|
|
11 |
email_to = you@yourdomain.com
|
|
|
12 |
smtp_server = localhost
|
|
|
13 |
error_email_from = paste@localhost
|
|
|
14 |
|
|
|
15 |
[server:main]
|
|
|
16 |
use = egg:Paste#http
|
|
|
17 |
host = 0.0.0.0
|
|
|
18 |
port = 8080
|
|
|
19 |
|
|
|
20 |
[app:main]
|
|
|
21 |
use = egg:Wiki-20
|
|
|
22 |
full_stack = true
|
|
|
23 |
cache_dir = %(here)s/data
|
|
|
24 |
beaker.session.key = wiki20
|
|
|
25 |
beaker.session.secret = ${app_instance_secret}
|
|
|
26 |
app_instance_uuid = ${app_instance_uuid}
|
|
|
27 |
|
|
|
28 |
# If you'd like to fine-tune the individual locations of the cache data dirs
|
|
|
29 |
# for the Cache data, or the Session saves, un-comment the desired settings
|
|
|
30 |
# here:
|
|
|
31 |
#beaker.cache.data_dir = %(here)s/data/cache
|
|
|
32 |
#beaker.session.data_dir = %(here)s/data/sessions
|
|
|
33 |
# Specify the database for SQLAlchemy to use via
|
|
|
34 |
# turbogears.database
|
|
|
35 |
# %(here) may include a ':' character on Windows environments; this can
|
|
|
36 |
# invalidate the URI when specifying a SQLite db via path name
|
|
|
37 |
sqlalchemy.url = sqlite:///%(here)s/somedb.db
|
|
|
38 |
sqlalchemy.echo = False
|
|
|
39 |
|
|
|
40 |
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
|
|
|
41 |
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
|
|
|
42 |
# execute malicious code after an exception is raised.
|
|
|
43 |
#set debug = false
|
|
|
44 |
|
|
|
45 |
# Logging configuration
|
|
|
46 |
# Add additional loggers, handlers, formatters here
|
|
|
47 |
# Uses python's logging config file format
|
|
|
48 |
# http://docs.python.org/lib/logging-config-fileformat.html
|
|
|
49 |
|
|
|
50 |
[loggers]
|
|
|
51 |
keys = root, wiki20, sqlalchemy
|
|
|
52 |
|
|
|
53 |
[handlers]
|
|
|
54 |
keys = console
|
|
|
55 |
|
|
|
56 |
[formatters]
|
|
|
57 |
keys = generic
|
|
|
58 |
|
|
|
59 |
# If you create additional loggers, add them as a key to [loggers]
|
|
|
60 |
[logger_root]
|
|
|
61 |
level = INFO
|
|
|
62 |
handlers = console
|
|
|
63 |
|
|
|
64 |
[logger_wiki20]
|
|
|
65 |
level = INFO
|
|
|
66 |
handlers =
|
|
|
67 |
qualname = wiki20
|
|
|
68 |
|
|
|
69 |
[logger_sqlalchemy]
|
|
|
70 |
level = WARN
|
|
|
71 |
handlers =
|
|
|
72 |
qualname = sqlalchemy.engine
|
|
|
73 |
# "level = INFO" logs SQL queries.
|
|
|
74 |
# "level = DEBUG" logs SQL queries and results.
|
|
|
75 |
# "level = WARN" logs neither. (Recommended for production systems.)
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
# If you create additional handlers, add them as a key to [handlers]
|
|
|
79 |
[handler_console]
|
|
|
80 |
class = StreamHandler
|
|
|
81 |
args = (sys.stderr,)
|
|
|
82 |
level = NOTSET
|
|
|
83 |
formatter = generic
|
|
|
84 |
|
|
|
85 |
# If you create additional formatters, add them as a key to [formatters]
|
|
|
86 |
[formatter_generic]
|
|
|
87 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
|
|
88 |
datefmt = %H:%M:%S
|