vigiboard / production.ini @ 4317b204
History | View | Annotate | Download (4.83 KB)
1 |
# |
---|---|
2 |
# vigiboard - Pylons development environment configuration |
3 |
# |
4 |
# The %(here)s variable will be replaced with the parent directory of this file |
5 |
# |
6 |
# This file is for deployment specific config options -- other configuration |
7 |
# that is always required for the app is done in the config directory, |
8 |
# and generally should not be modified by end users. |
9 |
|
10 |
[DEFAULT] |
11 |
debug = false |
12 |
# Uncomment and replace with the address which should receive any error reports |
13 |
#email_to = you@yourdomain.com |
14 |
smtp_server = localhost |
15 |
error_email_from = paste@localhost |
16 |
|
17 |
[server:main] |
18 |
use = egg:Paste#http |
19 |
host = 127.0.0.1 |
20 |
port = 8080 |
21 |
|
22 |
[app:main] |
23 |
use = egg:vigiboard |
24 |
|
25 |
# Requis par Vigiboard |
26 |
appname = vigiboard |
27 |
|
28 |
; Ordre de tri pour la priorité des événements. |
29 |
; - Utiliser "asc" si la priorité est inversement proportionnelle à sa |
30 |
; valeur (ie: plus le nombre est bas, plus la priorité est élevée). |
31 |
; - Utiliser "desc" si la priorité est proportionnelle à sa valeur |
32 |
; (ie: plus le nombre est élevé, plus la priorité est basse). |
33 |
; NE PAS METTRE DE GUILLEMETS/APOSTROPHES AUTOUR DE LA VALEUR. |
34 |
vigiboard_priority_order = asc |
35 |
|
36 |
full_stack = true |
37 |
#lang = fr |
38 |
cache_dir = %(here)s/data |
39 |
beaker.session.key = vigiboard |
40 |
beaker.session.secret = somesecret |
41 |
|
42 |
# If you'd like to fine-tune the individual locations of the cache data dirs |
43 |
# for the Cache data, or the Session saves, un-comment the desired settings |
44 |
# here: |
45 |
#beaker.cache.data_dir = %(here)s/data/cache |
46 |
#beaker.session.data_dir = %(here)s/data/sessions |
47 |
|
48 |
# DB - sqlite fails, not postgresql ready, use mysql for now |
49 |
#sqlalchemy.url = sqlite:///%(here)s/devdata.db |
50 |
#sqlalchemy.url=mysql://vigiboard:penmdor@localhost/vigiboard |
51 |
sqlalchemy.url=postgres://vigiboard:tandreja@localhost/vigiboard |
52 |
#sqlalchemy.url=mysql://root:tandreja@localhost:3306/vigiboard |
53 |
#echo shouldn't be used together with the logging module. |
54 |
sqlalchemy.echo = false |
55 |
sqlalchemy.echo_pool = false |
56 |
sqlalchemy.pool_recycle = 3600 |
57 |
|
58 |
base_url_filter.base_url= |
59 |
# if you are using Mako and want to be able to reload |
60 |
# the mako template from disk during the development phase |
61 |
# you should say 'true' here |
62 |
# This option is only used for mako templating engine |
63 |
# WARNING: if you want to deploy your application using a zipped egg |
64 |
# (ie: if your application's setup.py defines zip-safe=True, then you |
65 |
# MUST put "false" for the production environment because there will |
66 |
# be no disk and real files to compare time with. |
67 |
# On the contrary if your application defines zip-safe=False and is |
68 |
# deployed in an unzipped manner, then you can leave this option to true |
69 |
templating.mako.reloadfromdisk = true |
70 |
|
71 |
# the compiled template dir is a directory that must be readable by your |
72 |
# webserver. It will be used to store the resulting templates once compiled |
73 |
# by the TemplateLookup system. |
74 |
# During development you generally don't need this option since paste's HTTP |
75 |
# server will have access to you development directories, but in production |
76 |
# you'll most certainly want to have apache or nginx to write in a directory |
77 |
# that does not contain any source code in any form for obvious security reasons. |
78 |
# |
79 |
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
80 |
|
81 |
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
82 |
# Debug mode will enable the interactive debugging tool, allowing ANYONE to |
83 |
# execute malicious code after an exception is raised. |
84 |
set debug = false |
85 |
|
86 |
# Logging configuration |
87 |
# Add additional loggers, handlers, formatters here |
88 |
# Uses python's logging config file format |
89 |
# http://docs.python.org/lib/logging-config-fileformat.html |
90 |
|
91 |
[loggers] |
92 |
keys = root, vigiboard, sqlalchemy, auth |
93 |
|
94 |
[handlers] |
95 |
keys = console,sql_log,root_log,vigiboard_log,auth_log |
96 |
|
97 |
[formatters] |
98 |
keys = generic |
99 |
|
100 |
# If you create additional loggers, add them as a key to [loggers] |
101 |
[logger_root] |
102 |
level = DEBUG |
103 |
handlers = root_log |
104 |
|
105 |
[logger_vigiboard] |
106 |
level = DEBUG |
107 |
handlers = vigiboard_log |
108 |
qualname = vigiboard |
109 |
|
110 |
[logger_sqlalchemy] |
111 |
level = DEBUG |
112 |
handlers = sql_log |
113 |
qualname = sqlalchemy.engine |
114 |
|
115 |
# A logger for authentication, identification and authorization -- this is |
116 |
# repoze.who and repoze.what: |
117 |
[logger_auth] |
118 |
level = DEBUG |
119 |
handlers = auth_log |
120 |
qualname = auth |
121 |
|
122 |
# If you create additional handlers, add them as a key to [handlers] |
123 |
[handler_console] |
124 |
class = StreamHandler |
125 |
args = (sys.stderr,) |
126 |
level = NOTSET |
127 |
formatter = generic |
128 |
|
129 |
[handler_sql_log] |
130 |
class = FileHandler |
131 |
args = ('log/sql.log','a') |
132 |
level = DEBUG |
133 |
formatter = generic |
134 |
|
135 |
[handler_root_log] |
136 |
class = FileHandler |
137 |
args = ('log/root.log','a') |
138 |
level = DEBUG |
139 |
formatter = generic |
140 |
|
141 |
[handler_vigiboard_log] |
142 |
class = FileHandler |
143 |
args = ('log/vigiboard.log','a') |
144 |
level = DEBUG |
145 |
formatter = generic |
146 |
|
147 |
[handler_auth_log] |
148 |
class = FileHandler |
149 |
args = ('log/auth.log','a') |
150 |
level = DEBUG |
151 |
formatter = generic |
152 |
|
153 |
# If you create additional formatters, add them as a key to [formatters] |
154 |
[formatter_generic] |
155 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
156 |
datefmt = %H:%M:%S |