Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / vigiboard / config / deployment.ini_tmpl @ b373a5de

History | View | Annotate | Download (2.63 KB)

1
#
2
# vigiboard - TurboGears configuration
3
#
4
# The %(here)s variable will be replaced with the parent directory of this file
5
#
6
# Copyright (C) 2006-2011 CS-SI
7
# License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
8

    
9
[DEFAULT]
10
# WARGING == If debug is not set to false, you'll get the interactive
11
# debugger on production, which is a huge security hole. 
12

    
13
debug = false
14
email_to = you@yourdomain.com
15
smtp_server = localhost
16
error_email_from = paste@localhost
17

    
18
[server:main]
19
use = egg:Paste#http
20
host = 0.0.0.0
21
port = 8080
22

    
23
[app:main]
24
use = egg:vigiboard
25
full_stack = true
26
cache_dir = %(here)s/data
27
beaker.session.key = vigiboard
28
beaker.session.secret = ${app_instance_secret}
29
app_instance_uuid = ${app_instance_uuid}
30

    
31
# If you'd like to fine-tune the individual locations of the cache data dirs
32
# for the Cache data, or the Session saves, un-comment the desired settings
33
# here:
34
#beaker.cache.data_dir = %(here)s/data/cache
35
#beaker.session.data_dir = %(here)s/data/sessions
36
# Specify the database for SQLAlchemy to use via
37
# turbogears.database
38
# %(here) may include a ':' character on Windows environments; this can
39
# invalidate the URI when specifying a SQLite db via path name
40
sqlalchemy.url = sqlite:///%(here)s/somedb.db
41
sqlalchemy.echo = False
42

    
43
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
44
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
45
# execute malicious code after an exception is raised.
46
#set debug = false
47

    
48
# Logging configuration
49
# Add additional loggers, handlers, formatters here
50
# Uses python's logging config file format
51
# http://docs.python.org/lib/logging-config-fileformat.html
52

    
53
[loggers]
54
keys = root, vigiboard, sqlalchemy, auth
55

    
56
[handlers]
57
keys = console
58

    
59
[formatters]
60
keys = generic
61

    
62
# If you create additional loggers, add them as a key to [loggers]
63
[logger_root]
64
level = INFO
65
handlers = console
66

    
67
[logger_vigiboard]
68
level = INFO
69
handlers =
70
qualname = vigiboard
71

    
72
[logger_sqlalchemy]
73
level = WARN
74
handlers =
75
qualname = sqlalchemy.engine
76
# "level = INFO" logs SQL queries.
77
# "level = DEBUG" logs SQL queries and results.
78
# "level = WARN" logs neither.  (Recommended for production systems.)
79

    
80

    
81
# A logger for authentication, identification and authorization -- this is
82
# repoze.who and repoze.what:
83
[logger_auth]
84
level = WARN
85
handlers = 
86
qualname = auth
87

    
88
# If you create additional handlers, add them as a key to [handlers]
89
[handler_console]
90
class = StreamHandler
91
args = (sys.stderr,)
92
level = NOTSET
93
formatter = generic
94

    
95
# If you create additional formatters, add them as a key to [formatters]
96
[formatter_generic]
97
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
98
datefmt = %H:%M:%S