##// END OF EJS Templates
Added example connection string for other databases
marcink -
r1443:7cbc901b beta
parent child Browse files
Show More
@@ -1,232 +1,242 b''
1 1 ################################################################################
2 2 ################################################################################
3 3 # RhodeCode - Pylons environment configuration #
4 4 # #
5 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 6 ################################################################################
7 7
8 8 [DEFAULT]
9 9 debug = true
10 10 pdebug = false
11 11 ################################################################################
12 12 ## Uncomment and replace with the address which should receive ##
13 13 ## any error reports after application crash ##
14 14 ## Additionally those settings will be used by RhodeCode mailing system ##
15 15 ################################################################################
16 16 #email_to = admin@localhost
17 17 #error_email_from = paste_error@localhost
18 18 #app_email_from = rhodecode-noreply@localhost
19 19 #error_message =
20 20
21 21 #smtp_server = mail.server.com
22 22 #smtp_username =
23 23 #smtp_password =
24 24 #smtp_port =
25 25 #smtp_use_tls = false
26 26 #smtp_use_ssl = true
27 27
28 28 [server:main]
29 29 ##nr of threads to spawn
30 30 threadpool_workers = 5
31 31
32 32 ##max request before thread respawn
33 33 threadpool_max_requests = 10
34 34
35 35 ##option to use threads of process
36 36 use_threadpool = true
37 37
38 38 use = egg:Paste#http
39 39 host = 127.0.0.1
40 40 port = 5000
41 41
42 42 [app:main]
43 43 use = egg:rhodecode
44 44 full_stack = true
45 45 static_files = true
46 46 lang=en
47 47 cache_dir = %(here)s/data
48 48 index_dir = %(here)s/data/index
49 49 app_instance_uuid = ${app_instance_uuid}
50 50 cut_off_limit = 256000
51 51 force_https = false
52 52 commit_parse_limit = 50
53 53 use_gravatar = true
54 54
55 55 ####################################
56 56 ### CELERY CONFIG ####
57 57 ####################################
58 58 use_celery = false
59 59 broker.host = localhost
60 60 broker.vhost = rabbitmqhost
61 61 broker.port = 5672
62 62 broker.user = rabbitmq
63 63 broker.password = qweqwe
64 64
65 65 celery.imports = rhodecode.lib.celerylib.tasks
66 66
67 67 celery.result.backend = amqp
68 68 celery.result.dburi = amqp://
69 69 celery.result.serialier = json
70 70
71 71 #celery.send.task.error.emails = true
72 72 #celery.amqp.task.result.expires = 18000
73 73
74 74 celeryd.concurrency = 2
75 75 #celeryd.log.file = celeryd.log
76 76 celeryd.log.level = debug
77 77 celeryd.max.tasks.per.child = 1
78 78
79 79 #tasks will never be sent to the queue, but executed locally instead.
80 80 celery.always.eager = false
81 81
82 82 ####################################
83 83 ### BEAKER CACHE ####
84 84 ####################################
85 85 beaker.cache.data_dir=%(here)s/data/cache/data
86 86 beaker.cache.lock_dir=%(here)s/data/cache/lock
87 87
88 88 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
89 89
90 90 beaker.cache.super_short_term.type=memory
91 91 beaker.cache.super_short_term.expire=10
92 92
93 93 beaker.cache.short_term.type=memory
94 94 beaker.cache.short_term.expire=60
95 95
96 96 beaker.cache.long_term.type=memory
97 97 beaker.cache.long_term.expire=36000
98 98
99 99 beaker.cache.sql_cache_short.type=memory
100 100 beaker.cache.sql_cache_short.expire=10
101 101
102 102 beaker.cache.sql_cache_med.type=memory
103 103 beaker.cache.sql_cache_med.expire=360
104 104
105 105 beaker.cache.sql_cache_long.type=file
106 106 beaker.cache.sql_cache_long.expire=3600
107 107
108 108 ####################################
109 109 ### BEAKER SESSION ####
110 110 ####################################
111 111 ## Type of storage used for the session, current types are
112 112 ## dbm, file, memcached, database, and memory.
113 113 ## The storage uses the Container API
114 114 ##that is also used by the cache system.
115 115 beaker.session.type = file
116 116
117 117 beaker.session.key = rhodecode
118 118 beaker.session.secret = ${app_instance_secret}
119 119 beaker.session.timeout = 36000
120 120
121 121 ##auto save the session to not to use .save()
122 122 beaker.session.auto = False
123 123
124 124 ##true exire at browser close
125 125 #beaker.session.cookie_expires = 3600
126 126
127 127
128 128 ################################################################################
129 129 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
130 130 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
131 131 ## execute malicious code after an exception is raised. ##
132 132 ################################################################################
133 133 set debug = false
134 134
135 135 ##################################
136 136 ### LOGVIEW CONFIG ###
137 137 ##################################
138 138 logview.sqlalchemy = #faa
139 139 logview.pylons.templating = #bfb
140 140 logview.pylons.util = #eee
141 141
142 142 #########################################################
143 143 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
144 144 #########################################################
145
146 # SQLITE [default]
145 147 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
148
149 # POSTGRES
150 # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode
151
152 # MySQL
153 # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode
154
155
146 156 sqlalchemy.db1.echo = false
147 157 sqlalchemy.db1.pool_recycle = 3600
148 158 sqlalchemy.convert_unicode = true
149 159
150 160 ################################
151 161 ### LOGGING CONFIGURATION ####
152 162 ################################
153 163 [loggers]
154 164 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
155 165
156 166 [handlers]
157 167 keys = console, console_sql
158 168
159 169 [formatters]
160 170 keys = generic, color_formatter, color_formatter_sql
161 171
162 172 #############
163 173 ## LOGGERS ##
164 174 #############
165 175 [logger_root]
166 176 level = NOTSET
167 177 handlers = console
168 178
169 179 [logger_routes]
170 180 level = DEBUG
171 181 handlers =
172 182 qualname = routes.middleware
173 183 # "level = DEBUG" logs the route matched and routing variables.
174 184 propagate = 1
175 185
176 186 [logger_beaker]
177 187 level = DEBUG
178 188 handlers =
179 189 qualname = beaker.container
180 190 propagate = 1
181 191
182 192 [logger_templates]
183 193 level = INFO
184 194 handlers =
185 195 qualname = pylons.templating
186 196 propagate = 1
187 197
188 198 [logger_rhodecode]
189 199 level = DEBUG
190 200 handlers =
191 201 qualname = rhodecode
192 202 propagate = 1
193 203
194 204 [logger_sqlalchemy]
195 205 level = INFO
196 206 handlers = console_sql
197 207 qualname = sqlalchemy.engine
198 208 propagate = 0
199 209
200 210 ##############
201 211 ## HANDLERS ##
202 212 ##############
203 213
204 214 [handler_console]
205 215 class = StreamHandler
206 216 args = (sys.stderr,)
207 217 level = INFO
208 218 formatter = color_formatter
209 219
210 220 [handler_console_sql]
211 221 class = StreamHandler
212 222 args = (sys.stderr,)
213 223 level = WARN
214 224 formatter = color_formatter_sql
215 225
216 226 ################
217 227 ## FORMATTERS ##
218 228 ################
219 229
220 230 [formatter_generic]
221 231 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
222 232 datefmt = %Y-%m-%d %H:%M:%S
223 233
224 234 [formatter_color_formatter]
225 235 class=rhodecode.lib.colored_formatter.ColorFormatter
226 236 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
227 237 datefmt = %Y-%m-%d %H:%M:%S
228 238
229 239 [formatter_color_formatter_sql]
230 240 class=rhodecode.lib.colored_formatter.ColorFormatterSql
231 241 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
232 242 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now