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