vigigraph / development.ini @ c472fc59
History | View | Annotate | Download (4.92 KB)
1 | 0931fc44 | Thomas BURGUIERE | # |
---|---|---|---|
2 | # vigigraph - 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 | 301d508e | Francois POIROTTE | # that is always required for the app is done in the config directory, |
8 | # and generally should not be modified by end users. |
||
9 | 0931fc44 | Thomas BURGUIERE | |
10 | [DEFAULT] |
||
11 | debug = true |
||
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 | 301d508e | Francois POIROTTE | host = 0.0.0.0 |
20 | 4cdb7492 | Thomas BURGUIERE | port = 8082 |
21 | 0931fc44 | Thomas BURGUIERE | |
22 | [app:main] |
||
23 | 198885a1 | Aurelien BOMPARD | use = egg:vigilo-vigigraph |
24 | 4964dc96 | Vincent QUEMENER | |
25 | 454df3f9 | Francois POIROTTE | db_basename=vigilo_ |
26 | e381d893 | Francois POIROTTE | password_hashing_function=md5 |
27 | 4964dc96 | Vincent QUEMENER | lang=fr |
28 | d7188849 | Francois POIROTTE | help_link=http://foo.bar/help |
29 | logo_link = / |
||
30 | |||
31 | 98c1bcf7 | Thomas BURGUIERE | app.vigicore = / |
32 | 0931fc44 | Thomas BURGUIERE | |
33 | fa7cea2a | Aurelien BOMPARD | ; Emplacement des applications (vigirrd, Nagios, ...) |
34 | 2ed2fd99 | Francois POIROTTE | ; sur les serveurs distants. |
35 | 7c9baa43 | Francois POIROTTE | app_path.vigirrd = / |
36 | 2ed2fd99 | Francois POIROTTE | app_path.nagios = /nagios/ |
37 | |||
38 | ; Schéma ("protocol") à utiliser pour se connecter |
||
39 | ; à l'application. En général : http ou https. |
||
40 | ; Par défaut : http |
||
41 | fa7cea2a | Aurelien BOMPARD | app_scheme.vigirrd = http |
42 | 2ed2fd99 | Francois POIROTTE | app_scheme.nagios = http |
43 | |||
44 | ; Port de connexion au serveur distant hébergeant |
||
45 | ; l'application. |
||
46 | ; Par défaut : 80 |
||
47 | 7c9baa43 | Francois POIROTTE | app_port.vigirrd = 8084 |
48 | 2ed2fd99 | Francois POIROTTE | app_port.nagios = 80 |
49 | 4964dc96 | Vincent QUEMENER | |
50 | a5b1b312 | Francois POIROTTE | # Délai de rafraîchissement (en secondes) |
51 | refresh_delay = 30 |
||
52 | 4964dc96 | Vincent QUEMENER | |
53 | 462f589e | Francois POIROTTE | full_stack = true |
54 | cache_dir = %(here)s/data |
||
55 | beaker.session.key = vigigraph |
||
56 | beaker.session.secret = vigilo |
||
57 | sa_auth.cookie_secret = vigilo |
||
58 | |||
59 | 0931fc44 | Thomas BURGUIERE | # If you'd like to fine-tune the individual locations of the cache data dirs |
60 | # for the Cache data, or the Session saves, un-comment the desired settings |
||
61 | # here: |
||
62 | #beaker.cache.data_dir = %(here)s/data/cache |
||
63 | #beaker.session.data_dir = %(here)s/data/sessions |
||
64 | |||
65 | # pick the form for your database |
||
66 | # %(here) may include a ':' character on Windows environments; this can |
||
67 | # invalidate the URI when specifying a SQLite db via path name |
||
68 | 301d508e | Francois POIROTTE | # sqlalchemy.url=postgres://username:password@hostname:port/databasename |
69 | 0931fc44 | Thomas BURGUIERE | # sqlalchemy.url=mysql://username:password@hostname:port/databasename |
70 | |||
71 | |||
72 | # If you have sqlite, here's a simple default to get you started |
||
73 | # in development |
||
74 | |||
75 | 6a7fa300 | Francois POIROTTE | sqlalchemy.url=postgresql://vigilo:vigilo@127.0.0.1/vigilo |
76 | 4964dc96 | Vincent QUEMENER | #sqlalchemy.url = sqlite:///%(here)s/devdata.db |
77 | 0931fc44 | Thomas BURGUIERE | #echo shouldn't be used together with the logging module. |
78 | sqlalchemy.echo = false |
||
79 | sqlalchemy.echo_pool = false |
||
80 | sqlalchemy.pool_recycle = 3600 |
||
81 | |||
82 | # if you are using Mako and want to be able to reload |
||
83 | # the mako template from disk during the development phase |
||
84 | # you should say 'true' here |
||
85 | # This option is only used for mako templating engine |
||
86 | # WARNING: if you want to deploy your application using a zipped egg |
||
87 | # (ie: if your application's setup.py defines zip-safe=True, then you |
||
88 | # MUST put "false" for the production environment because there will |
||
89 | # be no disk and real files to compare time with. |
||
90 | # On the contrary if your application defines zip-safe=False and is |
||
91 | # deployed in an unzipped manner, then you can leave this option to true |
||
92 | templating.mako.reloadfromdisk = true |
||
93 | |||
94 | # the compiled template dir is a directory that must be readable by your |
||
95 | # webserver. It will be used to store the resulting templates once compiled |
||
96 | # by the TemplateLookup system. |
||
97 | # During development you generally don't need this option since paste's HTTP |
||
98 | # server will have access to you development directories, but in production |
||
99 | # you'll most certainly want to have apache or nginx to write in a directory |
||
100 | # that does not contain any source code in any form for obvious security reasons. |
||
101 | # |
||
102 | #templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
||
103 | |||
104 | # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
||
105 | # Debug mode will enable the interactive debugging tool, allowing ANYONE to |
||
106 | # execute malicious code after an exception is raised. |
||
107 | #set debug = false |
||
108 | |||
109 | 301d508e | Francois POIROTTE | auth.config = %(here)s/who.ini |
110 | #auth.log_file = stdout |
||
111 | #auth.log_level = debug |
||
112 | |||
113 | 0931fc44 | Thomas BURGUIERE | # Logging configuration |
114 | # Add additional loggers, handlers, formatters here |
||
115 | # Uses python's logging config file format |
||
116 | # http://docs.python.org/lib/logging-config-fileformat.html |
||
117 | |||
118 | [loggers] |
||
119 | keys = root, vigigraph, sqlalchemy, auth |
||
120 | |||
121 | [handlers] |
||
122 | keys = console |
||
123 | |||
124 | [formatters] |
||
125 | keys = generic |
||
126 | |||
127 | # If you create additional loggers, add them as a key to [loggers] |
||
128 | [logger_root] |
||
129 | level = INFO |
||
130 | handlers = console |
||
131 | |||
132 | [logger_vigigraph] |
||
133 | level = DEBUG |
||
134 | handlers = |
||
135 | qualname = vigigraph |
||
136 | |||
137 | [logger_sqlalchemy] |
||
138 | level = INFO |
||
139 | handlers = |
||
140 | qualname = sqlalchemy.engine |
||
141 | # "level = INFO" logs SQL queries. |
||
142 | # "level = DEBUG" logs SQL queries and results. |
||
143 | # "level = WARN" logs neither. (Recommended for production systems.) |
||
144 | |||
145 | |||
146 | # A logger for authentication, identification and authorization -- this is |
||
147 | # repoze.who and repoze.what: |
||
148 | [logger_auth] |
||
149 | level = WARN |
||
150 | 301d508e | Francois POIROTTE | handlers = |
151 | 0931fc44 | Thomas BURGUIERE | qualname = auth |
152 | |||
153 | # If you create additional handlers, add them as a key to [handlers] |
||
154 | [handler_console] |
||
155 | class = StreamHandler |
||
156 | args = (sys.stderr,) |
||
157 | level = NOTSET |
||
158 | formatter = generic |
||
159 | |||
160 | # If you create additional formatters, add them as a key to [formatters] |
||
161 | [formatter_generic] |
||
162 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
||
163 | datefmt = %H:%M:%S |