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