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