Revision b1f84bfd
Meilleure documentation des variables de configuration dans les fichiers déployés.
Organisation en sections avec des sémantiques bien définies.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@4202 b22e2e97-25c9-44ff-b637-2e5ceca36478
deployment/settings.ini | ||
---|---|---|
4 | 4 |
# The %(here)s variable will be replaced with the parent directory of this file |
5 | 5 |
# |
6 | 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.
|
|
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 | 9 |
|
10 | 10 |
[DEFAULT] |
11 | 11 |
debug = false |
... | ... | |
16 | 16 |
|
17 | 17 |
[server:main] |
18 | 18 |
use = egg:Paste#http |
19 |
host = 0.0.0.0
|
|
19 |
host = 0.0.0.0 |
|
20 | 20 |
port = 80 |
21 | 21 |
|
22 | 22 |
[app:main] |
23 | 23 |
use = egg:vigigraph |
24 | 24 |
|
25 |
; |
|
26 |
; Configuration de VigiGraph |
|
27 |
; |
|
28 |
|
|
29 |
; |
|
30 |
; 1 - Configuration de la base de données. |
|
31 |
; |
|
32 |
|
|
33 |
; URL d'accès à la base de données. |
|
34 |
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo |
|
35 |
|
|
36 |
; Le préfixe des tables de Vigilo dans la base de données. |
|
25 | 37 |
db_basename=vigilo_ |
38 |
|
|
39 |
; Options de bas niveau de la couche ORM |
|
40 |
; (pour déboguer les requêtes SQL). |
|
41 |
sqlalchemy.echo = false |
|
42 |
sqlalchemy.echo_pool = false |
|
43 |
sqlalchemy.pool_recycle = 3600 |
|
44 |
|
|
45 |
; |
|
46 |
; 2 - Configuration des éléments de sécurité. |
|
47 |
; |
|
48 |
|
|
49 |
; Méthode de hachage des mots de passe. |
|
50 |
; Les méthodes suivantes sont supportées : md5,sha1. |
|
51 |
; ATTENTION : Si cette directive n'est pas renseignée |
|
52 |
; ou si la méthode indiquée est introuvable, les mots |
|
53 |
; de passe sont stockés en clair dans la base de données !! |
|
26 | 54 |
password_hashing_function=md5 |
55 |
|
|
56 |
; La clé secrète utilisée pour chiffrer/déchiffrer la session. |
|
57 |
; Vous DEVEZ changer cette valeur avant la mise en production. |
|
58 |
; Vous pouvez utilisez la même valeur que pour la clé |
|
59 |
; "sa_auth.cookie_secret". |
|
60 |
beaker.session.secret = vigilo |
|
61 |
|
|
62 |
; La clé secret utilisée pour chiffrer/déchiffrer le cookie |
|
63 |
; d'authentification. |
|
64 |
; Vous DEVEZ changer cette valeur avant la mise en production. |
|
65 |
; Vous pouvez utilisez la même valeur que pour la clé |
|
66 |
; "beaker.session.secret". |
|
67 |
sa_auth.cookie_secret = vigilo |
|
68 |
|
|
69 |
; Indique si un mécanisme d'authentification externe |
|
70 |
; (ex : Kerberos) est en place ou non. |
|
71 |
external_auth=False |
|
72 |
|
|
73 |
; |
|
74 |
; 3 - Configuration de l'interface. |
|
75 |
; |
|
76 |
|
|
77 |
; La langue par défaut de l'interface. |
|
27 | 78 |
lang=fr |
28 |
use_kerberos=False |
|
29 |
help_link=/ |
|
79 |
|
|
80 |
; Lien d'aide (redirigeant vers la documentation de Vigilo |
|
81 |
; par exemple). |
|
82 |
help_link=http://help.example.com/vigilo |
|
83 |
|
|
84 |
; URL vers laquelle le logo de Vigilo redirige. |
|
30 | 85 |
logo_link = / |
31 | 86 |
|
87 |
; Délai de rafraîchissement automatique (en millisecondes). |
|
88 |
delay_refresh = 30000 |
|
89 |
|
|
90 |
; |
|
91 |
; 4 - Configuration des proxies Nagios & RRDgraph. |
|
92 |
; |
|
93 |
|
|
32 | 94 |
; Emplacement des applications (vigirrd, Nagios, ...) |
33 | 95 |
; sur les serveurs distants. |
34 | 96 |
app_path.rrdgraph = /vigilo/vigirrd/ |
... | ... | |
46 | 108 |
app_port.rrdgraph = 80 |
47 | 109 |
app_port.nagios = 80 |
48 | 110 |
|
49 |
# Vigigraph - refresh for graphs (en millisecondes) |
|
50 |
delay_refresh = 30000 |
|
111 |
; |
|
112 |
; 5 - Configuration avancée des sessions. |
|
113 |
; |
|
51 | 114 |
|
52 |
full_stack = true
|
|
115 |
; Le nom du dossier dans lequel les fichiers de sessions sont conservés.
|
|
53 | 116 |
cache_dir = /tmp/vigilo/vigigraph/data |
117 |
|
|
118 |
; Le nom du cookie de session qui sera créé sur le navigateur |
|
119 |
; du client. |
|
54 | 120 |
beaker.session.key = vigigraph |
55 |
beaker.session.secret = vigilo |
|
56 |
sa_auth.cookie_secret = vigilo |
|
57 | 121 |
|
58 | 122 |
# If you'd like to fine-tune the individual locations of the cache data dirs |
59 | 123 |
# for the Cache data, or the Session saves, un-comment the desired settings |
... | ... | |
61 | 125 |
#beaker.cache.data_dir = %(here)s/data/cache |
62 | 126 |
#beaker.session.data_dir = %(here)s/data/sessions |
63 | 127 |
|
64 |
# pick the form for your database
|
|
65 |
# %(here) may include a ':' character on Windows environments; this can
|
|
66 |
# invalidate the URI when specifying a SQLite db via path name
|
|
67 |
# sqlalchemy.url=postgres://username:password@hostname:port/databasename
|
|
68 |
# sqlalchemy.url=mysql://username:password@hostname:port/databasename
|
|
128 |
;
|
|
129 |
; 6 - Autres options.
|
|
130 |
; Pensez à configurer le logging dans les sections
|
|
131 |
; "loggers", "handlers" & "formatters" ci-dessous.
|
|
132 |
;
|
|
69 | 133 |
|
70 |
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo |
|
71 |
|
|
72 |
#echo shouldn't be used together with the logging module. |
|
73 |
sqlalchemy.echo = false |
|
74 |
sqlalchemy.echo_pool = false |
|
75 |
sqlalchemy.pool_recycle = 3600 |
|
76 |
|
|
77 |
# if you are using Mako and want to be able to reload |
|
78 |
# the mako template from disk during the development phase |
|
79 |
# you should say 'true' here |
|
80 |
# This option is only used for mako templating engine |
|
81 |
# WARNING: if you want to deploy your application using a zipped egg |
|
82 |
# (ie: if your application's setup.py defines zip-safe=True, then you |
|
83 |
# MUST put "false" for the production environment because there will |
|
84 |
# be no disk and real files to compare time with. |
|
85 |
# On the contrary if your application defines zip-safe=False and is |
|
86 |
# deployed in an unzipped manner, then you can leave this option to true |
|
87 |
templating.mako.reloadfromdisk = true |
|
88 |
|
|
89 |
# the compiled template dir is a directory that must be readable by your |
|
90 |
# webserver. It will be used to store the resulting templates once compiled |
|
91 |
# by the TemplateLookup system. |
|
92 |
# During development you generally don't need this option since paste's HTTP |
|
93 |
# server will have access to you development directories, but in production |
|
94 |
# you'll most certainly want to have apache or nginx to write in a directory |
|
95 |
# that does not contain any source code in any form for obvious security reasons. |
|
96 |
# |
|
97 |
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
|
134 |
; Doit être laissé à true pour obtenir une application fonctionnelle. |
|
135 |
full_stack = true |
|
98 | 136 |
|
137 |
; Doit valoir false en production (risque de sécurité sinon). |
|
99 | 138 |
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
100 | 139 |
# Debug mode will enable the interactive debugging tool, allowing ANYONE to |
101 | 140 |
# execute malicious code after an exception is raised. |
... | ... | |
172 | 211 |
[formatter_generic] |
173 | 212 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
174 | 213 |
datefmt = %H:%M:%S |
175 |
|
Also available in: Unified diff