##// END OF EJS Templates
default session settings was reverted to file....
marcink -
r1771:5948ab03 beta
parent child Browse files
Show More
@@ -1,262 +1,267 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 threadpool_max_requests = 6
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 = 0.0.0.0
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 = develop
53 53 cut_off_limit = 256000
54 54 force_https = false
55 55 commit_parse_limit = 25
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 # clone_uri = {scheme}://{user}{pass}{netloc}{path}
68 68
69 69 ####################################
70 70 ### CELERY CONFIG ####
71 71 ####################################
72 72 use_celery = false
73 73 broker.host = localhost
74 74 broker.vhost = rabbitmqhost
75 75 broker.port = 5672
76 76 broker.user = rabbitmq
77 77 broker.password = qweqwe
78 78
79 79 celery.imports = rhodecode.lib.celerylib.tasks
80 80
81 81 celery.result.backend = amqp
82 82 celery.result.dburi = amqp://
83 83 celery.result.serialier = json
84 84
85 85 #celery.send.task.error.emails = true
86 86 #celery.amqp.task.result.expires = 18000
87 87
88 88 celeryd.concurrency = 2
89 89 #celeryd.log.file = celeryd.log
90 90 celeryd.log.level = debug
91 91 celeryd.max.tasks.per.child = 1
92 92
93 93 #tasks will never be sent to the queue, but executed locally instead.
94 94 celery.always.eager = false
95 95
96 96 ####################################
97 97 ### BEAKER CACHE ####
98 98 ####################################
99 99 beaker.cache.data_dir=%(here)s/data/cache/data
100 100 beaker.cache.lock_dir=%(here)s/data/cache/lock
101 101
102 102 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
103 103
104 104 beaker.cache.super_short_term.type=memory
105 105 beaker.cache.super_short_term.expire=10
106 106 beaker.cache.super_short_term.key_length = 256
107 107
108 108 beaker.cache.short_term.type=memory
109 109 beaker.cache.short_term.expire=60
110 110 beaker.cache.short_term.key_length = 256
111 111
112 112 beaker.cache.long_term.type=memory
113 113 beaker.cache.long_term.expire=36000
114 114 beaker.cache.long_term.key_length = 256
115 115
116 116 beaker.cache.sql_cache_short.type=memory
117 117 beaker.cache.sql_cache_short.expire=10
118 118 beaker.cache.sql_cache_short.key_length = 256
119 119
120 120 beaker.cache.sql_cache_med.type=memory
121 121 beaker.cache.sql_cache_med.expire=360
122 122 beaker.cache.sql_cache_med.key_length = 256
123 123
124 124 beaker.cache.sql_cache_long.type=file
125 125 beaker.cache.sql_cache_long.expire=3600
126 126 beaker.cache.sql_cache_long.key_length = 256
127 127
128 128 ####################################
129 129 ### BEAKER SESSION ####
130 130 ####################################
131 131 ## Type of storage used for the session, current types are
132 132 ## dbm, file, memcached, database, and memory.
133 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 139 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
139 140 #beaker.session.table_name = db_session
140 141
141 beaker.session.type = cookie
142 ## encrypted cookie session, good for many instances
143 #beaker.session.type = cookie
144
145 beaker.session.type = file
142 146 beaker.session.key = rhodecode
143 147 beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
144 148 beaker.session.validate_key = 9712sds2212c--zxc123
145 149 beaker.session.timeout = 36000
146 150 beaker.session.httponly = true
147 # uncomment for https secure cookie
151
152 ## uncomment for https secure cookie
148 153 beaker.session.secure = false
149 154
150 155 ##auto save the session to not to use .save()
151 156 beaker.session.auto = False
152 157
153 158 ##true exire at browser close
154 159 #beaker.session.cookie_expires = 3600
155 160
156 161
157 162 ################################################################################
158 163 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
159 164 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
160 165 ## execute malicious code after an exception is raised. ##
161 166 ################################################################################
162 167 #set debug = false
163 168
164 169 ##################################
165 170 ### LOGVIEW CONFIG ###
166 171 ##################################
167 172 logview.sqlalchemy = #faa
168 173 logview.pylons.templating = #bfb
169 174 logview.pylons.util = #eee
170 175
171 176 #########################################################
172 177 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
173 178 #########################################################
174 179 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
175 180 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
176 181 sqlalchemy.db1.echo = false
177 182 sqlalchemy.db1.pool_recycle = 3600
178 183 sqlalchemy.convert_unicode = true
179 184
180 185 ################################
181 186 ### LOGGING CONFIGURATION ####
182 187 ################################
183 188 [loggers]
184 189 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
185 190
186 191 [handlers]
187 192 keys = console, console_sql
188 193
189 194 [formatters]
190 195 keys = generic, color_formatter, color_formatter_sql
191 196
192 197 #############
193 198 ## LOGGERS ##
194 199 #############
195 200 [logger_root]
196 201 level = NOTSET
197 202 handlers = console
198 203
199 204 [logger_routes]
200 205 level = DEBUG
201 206 handlers =
202 207 qualname = routes.middleware
203 208 # "level = DEBUG" logs the route matched and routing variables.
204 209 propagate = 1
205 210
206 211 [logger_beaker]
207 212 level = DEBUG
208 213 handlers =
209 214 qualname = beaker.container
210 215 propagate = 1
211 216
212 217 [logger_templates]
213 218 level = INFO
214 219 handlers =
215 220 qualname = pylons.templating
216 221 propagate = 1
217 222
218 223 [logger_rhodecode]
219 224 level = DEBUG
220 225 handlers =
221 226 qualname = rhodecode
222 227 propagate = 1
223 228
224 229 [logger_sqlalchemy]
225 230 level = INFO
226 231 handlers = console_sql
227 232 qualname = sqlalchemy.engine
228 233 propagate = 0
229 234
230 235 ##############
231 236 ## HANDLERS ##
232 237 ##############
233 238
234 239 [handler_console]
235 240 class = StreamHandler
236 241 args = (sys.stderr,)
237 242 level = DEBUG
238 243 formatter = color_formatter
239 244
240 245 [handler_console_sql]
241 246 class = StreamHandler
242 247 args = (sys.stderr,)
243 248 level = DEBUG
244 249 formatter = color_formatter_sql
245 250
246 251 ################
247 252 ## FORMATTERS ##
248 253 ################
249 254
250 255 [formatter_generic]
251 256 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
252 257 datefmt = %Y-%m-%d %H:%M:%S
253 258
254 259 [formatter_color_formatter]
255 260 class=rhodecode.lib.colored_formatter.ColorFormatter
256 261 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
257 262 datefmt = %Y-%m-%d %H:%M:%S
258 263
259 264 [formatter_color_formatter_sql]
260 265 class=rhodecode.lib.colored_formatter.ColorFormatterSql
261 266 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
262 267 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,262 +1,267 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 = 8001
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 = prod1234
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 # clone_uri = {scheme}://{user}{pass}{netloc}{path}
68 68
69 69 ####################################
70 70 ### CELERY CONFIG ####
71 71 ####################################
72 72 use_celery = false
73 73 broker.host = localhost
74 74 broker.vhost = rabbitmqhost
75 75 broker.port = 5672
76 76 broker.user = rabbitmq
77 77 broker.password = qweqwe
78 78
79 79 celery.imports = rhodecode.lib.celerylib.tasks
80 80
81 81 celery.result.backend = amqp
82 82 celery.result.dburi = amqp://
83 83 celery.result.serialier = json
84 84
85 85 #celery.send.task.error.emails = true
86 86 #celery.amqp.task.result.expires = 18000
87 87
88 88 celeryd.concurrency = 2
89 89 #celeryd.log.file = celeryd.log
90 90 celeryd.log.level = debug
91 91 celeryd.max.tasks.per.child = 1
92 92
93 93 #tasks will never be sent to the queue, but executed locally instead.
94 94 celery.always.eager = false
95 95
96 96 ####################################
97 97 ### BEAKER CACHE ####
98 98 ####################################
99 99 beaker.cache.data_dir=%(here)s/data/cache/data
100 100 beaker.cache.lock_dir=%(here)s/data/cache/lock
101 101
102 102 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
103 103
104 104 beaker.cache.super_short_term.type=memory
105 105 beaker.cache.super_short_term.expire=10
106 106 beaker.cache.super_short_term.key_length = 256
107 107
108 108 beaker.cache.short_term.type=memory
109 109 beaker.cache.short_term.expire=60
110 110 beaker.cache.short_term.key_length = 256
111 111
112 112 beaker.cache.long_term.type=memory
113 113 beaker.cache.long_term.expire=36000
114 114 beaker.cache.long_term.key_length = 256
115 115
116 116 beaker.cache.sql_cache_short.type=memory
117 117 beaker.cache.sql_cache_short.expire=10
118 118 beaker.cache.sql_cache_short.key_length = 256
119 119
120 120 beaker.cache.sql_cache_med.type=memory
121 121 beaker.cache.sql_cache_med.expire=360
122 122 beaker.cache.sql_cache_med.key_length = 256
123 123
124 124 beaker.cache.sql_cache_long.type=file
125 125 beaker.cache.sql_cache_long.expire=3600
126 126 beaker.cache.sql_cache_long.key_length = 256
127 127
128 128 ####################################
129 129 ### BEAKER SESSION ####
130 130 ####################################
131 131 ## Type of storage used for the session, current types are
132 132 ## dbm, file, memcached, database, and memory.
133 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 139 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
139 140 #beaker.session.table_name = db_session
140 141
141 beaker.session.type = cookie
142 ## encrypted cookie session, good for many instances
143 #beaker.session.type = cookie
144
145 beaker.session.type = file
142 146 beaker.session.key = rhodecode
143 147 beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
144 148 beaker.session.validate_key = 9712sds2212c--zxc123
145 149 beaker.session.timeout = 36000
146 150 beaker.session.httponly = true
147 # uncomment for https secure cookie
151
152 ## uncomment for https secure cookie
148 153 beaker.session.secure = false
149 154
150 155 ##auto save the session to not to use .save()
151 156 beaker.session.auto = False
152 157
153 158 ##true exire at browser close
154 159 #beaker.session.cookie_expires = 3600
155 160
156
161
157 162 ################################################################################
158 163 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
159 164 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
160 165 ## execute malicious code after an exception is raised. ##
161 166 ################################################################################
162 167 set debug = false
163 168
164 169 ##################################
165 170 ### LOGVIEW CONFIG ###
166 171 ##################################
167 172 logview.sqlalchemy = #faa
168 173 logview.pylons.templating = #bfb
169 174 logview.pylons.util = #eee
170 175
171 176 #########################################################
172 177 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
173 178 #########################################################
174 179 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
175 180 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
176 181 sqlalchemy.db1.echo = false
177 182 sqlalchemy.db1.pool_recycle = 3600
178 183 sqlalchemy.convert_unicode = true
179 184
180 185 ################################
181 186 ### LOGGING CONFIGURATION ####
182 187 ################################
183 188 [loggers]
184 189 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
185 190
186 191 [handlers]
187 192 keys = console, console_sql
188 193
189 194 [formatters]
190 195 keys = generic, color_formatter, color_formatter_sql
191 196
192 197 #############
193 198 ## LOGGERS ##
194 199 #############
195 200 [logger_root]
196 201 level = NOTSET
197 202 handlers = console
198 203
199 204 [logger_routes]
200 205 level = DEBUG
201 206 handlers =
202 207 qualname = routes.middleware
203 208 # "level = DEBUG" logs the route matched and routing variables.
204 209 propagate = 1
205 210
206 211 [logger_beaker]
207 212 level = DEBUG
208 213 handlers =
209 214 qualname = beaker.container
210 215 propagate = 1
211 216
212 217 [logger_templates]
213 218 level = INFO
214 219 handlers =
215 220 qualname = pylons.templating
216 221 propagate = 1
217 222
218 223 [logger_rhodecode]
219 224 level = DEBUG
220 225 handlers =
221 226 qualname = rhodecode
222 227 propagate = 1
223 228
224 229 [logger_sqlalchemy]
225 230 level = INFO
226 231 handlers = console_sql
227 232 qualname = sqlalchemy.engine
228 233 propagate = 0
229 234
230 235 ##############
231 236 ## HANDLERS ##
232 237 ##############
233 238
234 239 [handler_console]
235 240 class = StreamHandler
236 241 args = (sys.stderr,)
237 242 level = INFO
238 243 formatter = generic
239 244
240 245 [handler_console_sql]
241 246 class = StreamHandler
242 247 args = (sys.stderr,)
243 248 level = WARN
244 249 formatter = generic
245 250
246 251 ################
247 252 ## FORMATTERS ##
248 253 ################
249 254
250 255 [formatter_generic]
251 256 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
252 257 datefmt = %Y-%m-%d %H:%M:%S
253 258
254 259 [formatter_color_formatter]
255 260 class=rhodecode.lib.colored_formatter.ColorFormatter
256 261 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
257 262 datefmt = %Y-%m-%d %H:%M:%S
258 263
259 264 [formatter_color_formatter_sql]
260 265 class=rhodecode.lib.colored_formatter.ColorFormatterSql
261 266 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
262 267 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,272 +1,277 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 # clone_uri = {scheme}://{user}{pass}{netloc}{path}
68 68
69 69 ####################################
70 70 ### CELERY CONFIG ####
71 71 ####################################
72 72 use_celery = false
73 73 broker.host = localhost
74 74 broker.vhost = rabbitmqhost
75 75 broker.port = 5672
76 76 broker.user = rabbitmq
77 77 broker.password = qweqwe
78 78
79 79 celery.imports = rhodecode.lib.celerylib.tasks
80 80
81 81 celery.result.backend = amqp
82 82 celery.result.dburi = amqp://
83 83 celery.result.serialier = json
84 84
85 85 #celery.send.task.error.emails = true
86 86 #celery.amqp.task.result.expires = 18000
87 87
88 88 celeryd.concurrency = 2
89 89 #celeryd.log.file = celeryd.log
90 90 celeryd.log.level = debug
91 91 celeryd.max.tasks.per.child = 1
92 92
93 93 #tasks will never be sent to the queue, but executed locally instead.
94 94 celery.always.eager = false
95 95
96 96 ####################################
97 97 ### BEAKER CACHE ####
98 98 ####################################
99 99 beaker.cache.data_dir=%(here)s/data/cache/data
100 100 beaker.cache.lock_dir=%(here)s/data/cache/lock
101 101
102 102 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
103 103
104 104 beaker.cache.super_short_term.type=memory
105 105 beaker.cache.super_short_term.expire=10
106 106 beaker.cache.super_short_term.key_length = 256
107 107
108 108 beaker.cache.short_term.type=memory
109 109 beaker.cache.short_term.expire=60
110 110 beaker.cache.short_term.key_length = 256
111 111
112 112 beaker.cache.long_term.type=memory
113 113 beaker.cache.long_term.expire=36000
114 114 beaker.cache.long_term.key_length = 256
115 115
116 116 beaker.cache.sql_cache_short.type=memory
117 117 beaker.cache.sql_cache_short.expire=10
118 118 beaker.cache.sql_cache_short.key_length = 256
119 119
120 120 beaker.cache.sql_cache_med.type=memory
121 121 beaker.cache.sql_cache_med.expire=360
122 122 beaker.cache.sql_cache_med.key_length = 256
123 123
124 124 beaker.cache.sql_cache_long.type=file
125 125 beaker.cache.sql_cache_long.expire=3600
126 126 beaker.cache.sql_cache_long.key_length = 256
127 127
128 128 ####################################
129 129 ### BEAKER SESSION ####
130 130 ####################################
131 131 ## Type of storage used for the session, current types are
132 132 ## dbm, file, memcached, database, and memory.
133 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 139 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
139 140 #beaker.session.table_name = db_session
140 141
141 beaker.session.type = cookie
142 ## encrypted cookie session, good for many instances
143 #beaker.session.type = cookie
144
145 beaker.session.type = file
142 146 beaker.session.key = rhodecode
143 147 beaker.session.encrypt_key = ${app_instance_secret}
144 148 beaker.session.validate_key = ${app_instance_secret}
145 149 beaker.session.timeout = 36000
146 150 beaker.session.httponly = true
147 # uncomment for https secure cookie
151
152 ## uncomment for https secure cookie
148 153 beaker.session.secure = false
149 154
150 155 ##auto save the session to not to use .save()
151 156 beaker.session.auto = False
152 157
153 158 ##true exire at browser close
154 159 #beaker.session.cookie_expires = 3600
155 160
156 161
157 162 ################################################################################
158 163 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
159 164 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
160 165 ## execute malicious code after an exception is raised. ##
161 166 ################################################################################
162 167 set debug = false
163 168
164 169 ##################################
165 170 ### LOGVIEW CONFIG ###
166 171 ##################################
167 172 logview.sqlalchemy = #faa
168 173 logview.pylons.templating = #bfb
169 174 logview.pylons.util = #eee
170 175
171 176 #########################################################
172 177 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
173 178 #########################################################
174 179
175 180 # SQLITE [default]
176 181 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
177 182
178 183 # POSTGRESQL
179 184 # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode
180 185
181 186 # MySQL
182 187 # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode
183 188
184 189 # see sqlalchemy docs for others
185 190
186 191 sqlalchemy.db1.echo = false
187 192 sqlalchemy.db1.pool_recycle = 3600
188 193 sqlalchemy.convert_unicode = true
189 194
190 195 ################################
191 196 ### LOGGING CONFIGURATION ####
192 197 ################################
193 198 [loggers]
194 199 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
195 200
196 201 [handlers]
197 202 keys = console, console_sql
198 203
199 204 [formatters]
200 205 keys = generic, color_formatter, color_formatter_sql
201 206
202 207 #############
203 208 ## LOGGERS ##
204 209 #############
205 210 [logger_root]
206 211 level = NOTSET
207 212 handlers = console
208 213
209 214 [logger_routes]
210 215 level = DEBUG
211 216 handlers =
212 217 qualname = routes.middleware
213 218 # "level = DEBUG" logs the route matched and routing variables.
214 219 propagate = 1
215 220
216 221 [logger_beaker]
217 222 level = DEBUG
218 223 handlers =
219 224 qualname = beaker.container
220 225 propagate = 1
221 226
222 227 [logger_templates]
223 228 level = INFO
224 229 handlers =
225 230 qualname = pylons.templating
226 231 propagate = 1
227 232
228 233 [logger_rhodecode]
229 234 level = DEBUG
230 235 handlers =
231 236 qualname = rhodecode
232 237 propagate = 1
233 238
234 239 [logger_sqlalchemy]
235 240 level = INFO
236 241 handlers = console_sql
237 242 qualname = sqlalchemy.engine
238 243 propagate = 0
239 244
240 245 ##############
241 246 ## HANDLERS ##
242 247 ##############
243 248
244 249 [handler_console]
245 250 class = StreamHandler
246 251 args = (sys.stderr,)
247 252 level = INFO
248 253 formatter = color_formatter
249 254
250 255 [handler_console_sql]
251 256 class = StreamHandler
252 257 args = (sys.stderr,)
253 258 level = WARN
254 259 formatter = color_formatter_sql
255 260
256 261 ################
257 262 ## FORMATTERS ##
258 263 ################
259 264
260 265 [formatter_generic]
261 266 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
262 267 datefmt = %Y-%m-%d %H:%M:%S
263 268
264 269 [formatter_color_formatter]
265 270 class=rhodecode.lib.colored_formatter.ColorFormatter
266 271 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
267 272 datefmt = %Y-%m-%d %H:%M:%S
268 273
269 274 [formatter_color_formatter_sql]
270 275 class=rhodecode.lib.colored_formatter.ColorFormatterSql
271 276 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
272 277 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