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