##// END OF EJS Templates
deactivated enrypted cookies by default....
marcink -
r1889:10e6c850 beta
parent child Browse files
Show More
@@ -1,298 +1,299 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 #email_prefix = [RhodeCode]
21 21
22 22 #smtp_server = mail.server.com
23 23 #smtp_username =
24 24 #smtp_password =
25 25 #smtp_port =
26 26 #smtp_use_tls = false
27 27 #smtp_use_ssl = true
28 28 # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
29 29 #smtp_auth =
30 30
31 31 [server:main]
32 32 ##nr of threads to spawn
33 33 threadpool_workers = 5
34 34
35 35 ##max request before thread respawn
36 36 threadpool_max_requests = 10
37 37
38 38 ##option to use threads of process
39 39 use_threadpool = true
40 40
41 41 use = egg:Paste#http
42 42 host = 127.0.0.1
43 43 port = 5000
44 44
45 45 [app:main]
46 46 use = egg:rhodecode
47 47 full_stack = true
48 48 static_files = true
49 49 lang=en
50 50 cache_dir = %(here)s/data
51 51 index_dir = %(here)s/data/index
52 52 app_instance_uuid = ${app_instance_uuid}
53 53 cut_off_limit = 256000
54 54 force_https = false
55 55 commit_parse_limit = 50
56 56 use_gravatar = true
57 57 container_auth_enabled = false
58 58 proxypass_auth_enabled = false
59 59
60 60 ## overwrite schema of clone url
61 61 ## available vars:
62 62 ## scheme - http/https
63 63 ## user - current user
64 64 ## pass - password
65 65 ## netloc - network location
66 66 ## path - usually repo_name
67 67
68 68 # clone_uri = {scheme}://{user}{pass}{netloc}{path}
69 69
70 70 ## issue tracking mapping for commits messages
71 71 ## uncomment url_pat, issue_server, issue_prefix to enable
72 72
73 73
74 74 ## pattern to get the issues from commit messages
75 75 ## default one used here is #1234
76 76
77 77 #url_pat = (?:^#|\s#)(\w+)
78 78
79 79 ## server url to the issue, each {id} will be replaced with id
80 80 ## fetched from the regex and {repo} is replaced with repository name
81 81
82 82 #issue_server_link = https://myissueserver.com/{repo}/issue/{id}
83 83
84 84 ## prefix to add to link to indicate it's an url
85 85 ## #314 will be replaced by <issue_prefix><id>
86 86
87 87 #issue_prefix = #
88 88
89 89
90 90 ####################################
91 91 ### CELERY CONFIG ####
92 92 ####################################
93 93 use_celery = false
94 94 broker.host = localhost
95 95 broker.vhost = rabbitmqhost
96 96 broker.port = 5672
97 97 broker.user = rabbitmq
98 98 broker.password = qweqwe
99 99
100 100 celery.imports = rhodecode.lib.celerylib.tasks
101 101
102 102 celery.result.backend = amqp
103 103 celery.result.dburi = amqp://
104 104 celery.result.serialier = json
105 105
106 106 #celery.send.task.error.emails = true
107 107 #celery.amqp.task.result.expires = 18000
108 108
109 109 celeryd.concurrency = 2
110 110 #celeryd.log.file = celeryd.log
111 111 celeryd.log.level = debug
112 112 celeryd.max.tasks.per.child = 1
113 113
114 114 #tasks will never be sent to the queue, but executed locally instead.
115 115 celery.always.eager = false
116 116
117 117 ####################################
118 118 ### BEAKER CACHE ####
119 119 ####################################
120 120 beaker.cache.data_dir=%(here)s/data/cache/data
121 121 beaker.cache.lock_dir=%(here)s/data/cache/lock
122 122
123 123 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
124 124
125 125 beaker.cache.super_short_term.type=memory
126 126 beaker.cache.super_short_term.expire=10
127 127 beaker.cache.super_short_term.key_length = 256
128 128
129 129 beaker.cache.short_term.type=memory
130 130 beaker.cache.short_term.expire=60
131 131 beaker.cache.short_term.key_length = 256
132 132
133 133 beaker.cache.long_term.type=memory
134 134 beaker.cache.long_term.expire=36000
135 135 beaker.cache.long_term.key_length = 256
136 136
137 137 beaker.cache.sql_cache_short.type=memory
138 138 beaker.cache.sql_cache_short.expire=10
139 139 beaker.cache.sql_cache_short.key_length = 256
140 140
141 141 beaker.cache.sql_cache_med.type=memory
142 142 beaker.cache.sql_cache_med.expire=360
143 143 beaker.cache.sql_cache_med.key_length = 256
144 144
145 145 beaker.cache.sql_cache_long.type=file
146 146 beaker.cache.sql_cache_long.expire=3600
147 147 beaker.cache.sql_cache_long.key_length = 256
148 148
149 149 ####################################
150 150 ### BEAKER SESSION ####
151 151 ####################################
152 152 ## Type of storage used for the session, current types are
153 153 ## dbm, file, memcached, database, and memory.
154 154 ## The storage uses the Container API
155 155 ## that is also used by the cache system.
156 156
157 157 ## db session example
158 158
159 159 #beaker.session.type = ext:database
160 160 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
161 161 #beaker.session.table_name = db_session
162 162
163 163 ## encrypted cookie session, good for many instances
164 164 #beaker.session.type = cookie
165 165
166 166 beaker.session.type = file
167 167 beaker.session.key = rhodecode
168 beaker.session.encrypt_key = ${app_instance_secret}
169 beaker.session.validate_key = ${app_instance_secret}
168 # secure cookie requires AES python libraries
169 #beaker.session.encrypt_key = ${app_instance_secret}
170 #beaker.session.validate_key = ${app_instance_secret}
170 171 beaker.session.timeout = 36000
171 172 beaker.session.httponly = true
172 173
173 174 ## uncomment for https secure cookie
174 175 beaker.session.secure = false
175 176
176 177 ##auto save the session to not to use .save()
177 178 beaker.session.auto = False
178 179
179 180 ##true exire at browser close
180 181 #beaker.session.cookie_expires = 3600
181 182
182 183
183 184 ################################################################################
184 185 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
185 186 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
186 187 ## execute malicious code after an exception is raised. ##
187 188 ################################################################################
188 189 set debug = false
189 190
190 191 ##################################
191 192 ### LOGVIEW CONFIG ###
192 193 ##################################
193 194 logview.sqlalchemy = #faa
194 195 logview.pylons.templating = #bfb
195 196 logview.pylons.util = #eee
196 197
197 198 #########################################################
198 199 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
199 200 #########################################################
200 201
201 202 # SQLITE [default]
202 203 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
203 204
204 205 # POSTGRESQL
205 206 # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode
206 207
207 208 # MySQL
208 209 # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode
209 210
210 211 # see sqlalchemy docs for others
211 212
212 213 sqlalchemy.db1.echo = false
213 214 sqlalchemy.db1.pool_recycle = 3600
214 215 sqlalchemy.convert_unicode = true
215 216
216 217 ################################
217 218 ### LOGGING CONFIGURATION ####
218 219 ################################
219 220 [loggers]
220 221 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
221 222
222 223 [handlers]
223 224 keys = console, console_sql
224 225
225 226 [formatters]
226 227 keys = generic, color_formatter, color_formatter_sql
227 228
228 229 #############
229 230 ## LOGGERS ##
230 231 #############
231 232 [logger_root]
232 233 level = NOTSET
233 234 handlers = console
234 235
235 236 [logger_routes]
236 237 level = DEBUG
237 238 handlers =
238 239 qualname = routes.middleware
239 240 # "level = DEBUG" logs the route matched and routing variables.
240 241 propagate = 1
241 242
242 243 [logger_beaker]
243 244 level = DEBUG
244 245 handlers =
245 246 qualname = beaker.container
246 247 propagate = 1
247 248
248 249 [logger_templates]
249 250 level = INFO
250 251 handlers =
251 252 qualname = pylons.templating
252 253 propagate = 1
253 254
254 255 [logger_rhodecode]
255 256 level = DEBUG
256 257 handlers =
257 258 qualname = rhodecode
258 259 propagate = 1
259 260
260 261 [logger_sqlalchemy]
261 262 level = INFO
262 263 handlers = console_sql
263 264 qualname = sqlalchemy.engine
264 265 propagate = 0
265 266
266 267 ##############
267 268 ## HANDLERS ##
268 269 ##############
269 270
270 271 [handler_console]
271 272 class = StreamHandler
272 273 args = (sys.stderr,)
273 274 level = INFO
274 275 formatter = color_formatter
275 276
276 277 [handler_console_sql]
277 278 class = StreamHandler
278 279 args = (sys.stderr,)
279 280 level = WARN
280 281 formatter = color_formatter_sql
281 282
282 283 ################
283 284 ## FORMATTERS ##
284 285 ################
285 286
286 287 [formatter_generic]
287 288 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
288 289 datefmt = %Y-%m-%d %H:%M:%S
289 290
290 291 [formatter_color_formatter]
291 292 class=rhodecode.lib.colored_formatter.ColorFormatter
292 293 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
293 294 datefmt = %Y-%m-%d %H:%M:%S
294 295
295 296 [formatter_color_formatter_sql]
296 297 class=rhodecode.lib.colored_formatter.ColorFormatterSql
297 298 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
298 299 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