Show More
@@ -1,175 +1,187 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 | ################################################################################ |
|
10 | ################################################################################ | |
11 | ## Uncomment and replace with the address which should receive ## |
|
11 | ## Uncomment and replace with the address which should receive ## | |
12 | ## any error reports after application crash ## |
|
12 | ## any error reports after application crash ## | |
13 | ## Additionally those settings will be used by rhodecode mailing system ## |
|
13 | ## Additionally those settings will be used by rhodecode mailing system ## | |
14 | ################################################################################ |
|
14 | ################################################################################ | |
15 | #email_to = admin@localhost |
|
15 | #email_to = admin@localhost | |
16 | #error_email_from = paste_error@localhost |
|
16 | #error_email_from = paste_error@localhost | |
17 | #app_email_from = rhodecode-noreply@localhost |
|
17 | #app_email_from = rhodecode-noreply@localhost | |
18 | #error_message = |
|
18 | #error_message = | |
19 |
|
19 | |||
20 | #smtp_server = mail.server.com |
|
20 | #smtp_server = mail.server.com | |
21 | #smtp_username = |
|
21 | #smtp_username = | |
22 | #smtp_password = |
|
22 | #smtp_password = | |
23 | #smtp_port = |
|
23 | #smtp_port = | |
24 | #smtp_use_tls = |
|
24 | #smtp_use_tls = | |
25 |
|
25 | |||
26 | [server:main] |
|
26 | [server:main] | |
27 | ##nr of threads to spawn |
|
27 | ##nr of threads to spawn | |
28 | threadpool_workers = 5 |
|
28 | threadpool_workers = 5 | |
29 |
|
29 | |||
30 | ##max request before |
|
30 | ##max request before | |
31 | threadpool_max_requests = 6 |
|
31 | threadpool_max_requests = 6 | |
32 |
|
32 | |||
33 | ##option to use threads of process |
|
33 | ##option to use threads of process | |
34 | use_threadpool = false |
|
34 | use_threadpool = false | |
35 |
|
35 | |||
36 | use = egg:Paste#http |
|
36 | use = egg:Paste#http | |
37 |
host = |
|
37 | host = 0.0.0.0 | |
38 | port = 5000 |
|
38 | port = 5000 | |
39 |
|
39 | |||
40 | [app:main] |
|
40 | [app:main] | |
41 | use = egg:rhodecode |
|
41 | use = egg:rhodecode | |
42 | full_stack = true |
|
42 | full_stack = true | |
43 | static_files = true |
|
43 | static_files = true | |
44 | lang=en |
|
44 | lang=en | |
45 | cache_dir = %(here)s/data |
|
45 | cache_dir = %(here)s/data | |
46 | index_dir = %(here)s/data/index |
|
46 | index_dir = %(here)s/data/index | |
47 |
|
47 | |||
48 | #################################### |
|
48 | #################################### | |
49 | ### BEAKER CACHE #### |
|
49 | ### BEAKER CACHE #### | |
50 | #################################### |
|
50 | #################################### | |
51 | beaker.cache.data_dir=/%(here)s/data/cache/data |
|
51 | beaker.cache.data_dir=/%(here)s/data/cache/data | |
52 | beaker.cache.lock_dir=/%(here)s/data/cache/lock |
|
52 | beaker.cache.lock_dir=/%(here)s/data/cache/lock | |
53 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
53 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
54 |
|
54 | |||
55 | beaker.cache.super_short_term.type=memory |
|
55 | beaker.cache.super_short_term.type=memory | |
56 | beaker.cache.super_short_term.expire=10 |
|
56 | beaker.cache.super_short_term.expire=10 | |
57 |
|
57 | |||
58 | beaker.cache.short_term.type=memory |
|
58 | beaker.cache.short_term.type=memory | |
59 | beaker.cache.short_term.expire=60 |
|
59 | beaker.cache.short_term.expire=60 | |
60 |
|
60 | |||
61 | beaker.cache.long_term.type=memory |
|
61 | beaker.cache.long_term.type=memory | |
62 | beaker.cache.long_term.expire=36000 |
|
62 | beaker.cache.long_term.expire=36000 | |
63 |
|
63 | |||
64 |
|
64 | |||
65 | beaker.cache.sql_cache_short.type=memory |
|
65 | beaker.cache.sql_cache_short.type=memory | |
66 | beaker.cache.sql_cache_short.expire=5 |
|
66 | beaker.cache.sql_cache_short.expire=5 | |
67 |
|
67 | |||
68 | beaker.cache.sql_cache_med.type=memory |
|
68 | beaker.cache.sql_cache_med.type=memory | |
69 | beaker.cache.sql_cache_med.expire=360 |
|
69 | beaker.cache.sql_cache_med.expire=360 | |
70 |
|
70 | |||
71 | beaker.cache.sql_cache_long.type=file |
|
71 | beaker.cache.sql_cache_long.type=file | |
72 | beaker.cache.sql_cache_long.expire=3600 |
|
72 | beaker.cache.sql_cache_long.expire=3600 | |
73 |
|
73 | |||
74 | #################################### |
|
74 | #################################### | |
75 | ### BEAKER SESSION #### |
|
75 | ### BEAKER SESSION #### | |
76 | #################################### |
|
76 | #################################### | |
77 | ## Type of storage used for the session, current types are |
|
77 | ## Type of storage used for the session, current types are | |
78 | ## "dbm", "file", "memcached", "database", and "memory". |
|
78 | ## "dbm", "file", "memcached", "database", and "memory". | |
79 | ## The storage uses the Container API |
|
79 | ## The storage uses the Container API | |
80 | ##that is also used by the cache system. |
|
80 | ##that is also used by the cache system. | |
81 | beaker.session.type = file |
|
81 | beaker.session.type = file | |
82 |
|
82 | |||
83 | beaker.session.key = rhodecode |
|
83 | beaker.session.key = rhodecode | |
84 | beaker.session.secret = g654dcno0-9873jhgfreyu |
|
84 | beaker.session.secret = g654dcno0-9873jhgfreyu | |
85 | beaker.session.timeout = 36000 |
|
85 | beaker.session.timeout = 36000 | |
86 |
|
86 | |||
87 | ##auto save the session to not to use .save() |
|
87 | ##auto save the session to not to use .save() | |
88 | beaker.session.auto = False |
|
88 | beaker.session.auto = False | |
89 |
|
89 | |||
90 | ##true exire at browser close |
|
90 | ##true exire at browser close | |
91 | #beaker.session.cookie_expires = 3600 |
|
91 | #beaker.session.cookie_expires = 3600 | |
92 |
|
92 | |||
93 |
|
93 | |||
94 | ################################################################################ |
|
94 | ################################################################################ | |
95 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
95 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
96 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
96 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
97 | ## execute malicious code after an exception is raised. ## |
|
97 | ## execute malicious code after an exception is raised. ## | |
98 | ################################################################################ |
|
98 | ################################################################################ | |
99 | #set debug = false |
|
99 | #set debug = false | |
100 |
|
100 | |||
101 | ################################## |
|
101 | ################################## | |
102 | ### LOGVIEW CONFIG ### |
|
102 | ### LOGVIEW CONFIG ### | |
103 | ################################## |
|
103 | ################################## | |
104 | logview.sqlalchemy = #faa |
|
104 | logview.sqlalchemy = #faa | |
105 | logview.pylons.templating = #bfb |
|
105 | logview.pylons.templating = #bfb | |
106 | logview.pylons.util = #eee |
|
106 | logview.pylons.util = #eee | |
107 |
|
107 | |||
108 | ######################################################### |
|
108 | ######################################################### | |
109 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
109 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
110 | ######################################################### |
|
110 | ######################################################### | |
111 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
111 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
112 | #sqlalchemy.db1.echo = False |
|
112 | #sqlalchemy.db1.echo = False | |
113 | #sqlalchemy.db1.pool_recycle = 3600 |
|
113 | #sqlalchemy.db1.pool_recycle = 3600 | |
114 | sqlalchemy.convert_unicode = true |
|
114 | sqlalchemy.convert_unicode = true | |
115 |
|
115 | |||
116 | ################################ |
|
116 | ################################ | |
117 | ### LOGGING CONFIGURATION #### |
|
117 | ### LOGGING CONFIGURATION #### | |
118 | ################################ |
|
118 | ################################ | |
119 | [loggers] |
|
119 | [loggers] | |
120 | keys = root, routes, rhodecode, sqlalchemy |
|
120 | keys = root, routes, rhodecode, sqlalchemy,beaker,templates | |
121 |
|
121 | |||
122 | [handlers] |
|
122 | [handlers] | |
123 | keys = console |
|
123 | keys = console | |
124 |
|
124 | |||
125 | [formatters] |
|
125 | [formatters] | |
126 | keys = generic,color_formatter |
|
126 | keys = generic,color_formatter | |
127 |
|
127 | |||
128 | ############# |
|
128 | ############# | |
129 | ## LOGGERS ## |
|
129 | ## LOGGERS ## | |
130 | ############# |
|
130 | ############# | |
131 | [logger_root] |
|
131 | [logger_root] | |
132 | level = NOTSET |
|
132 | level = NOTSET | |
133 | handlers = console |
|
133 | handlers = console | |
134 |
|
134 | |||
135 | [logger_routes] |
|
135 | [logger_routes] | |
136 | level = DEBUG |
|
136 | level = DEBUG | |
137 | handlers = console |
|
137 | handlers = console | |
138 | qualname = routes.middleware |
|
138 | qualname = routes.middleware | |
139 | # "level = DEBUG" logs the route matched and routing variables. |
|
139 | # "level = DEBUG" logs the route matched and routing variables. | |
140 | propagate = 0 |
|
140 | propagate = 0 | |
141 |
|
141 | |||
|
142 | [logger_beaker] | |||
|
143 | level = ERROR | |||
|
144 | handlers = console | |||
|
145 | qualname = beaker.container | |||
|
146 | propagate = 0 | |||
|
147 | ||||
|
148 | [logger_templates] | |||
|
149 | level = INFO | |||
|
150 | handlers = console | |||
|
151 | qualname = pylons.templating | |||
|
152 | propagate = 0 | |||
|
153 | ||||
142 | [logger_rhodecode] |
|
154 | [logger_rhodecode] | |
143 | level = DEBUG |
|
155 | level = DEBUG | |
144 | handlers = console |
|
156 | handlers = console | |
145 | qualname = rhodecode |
|
157 | qualname = rhodecode | |
146 | propagate = 0 |
|
158 | propagate = 0 | |
147 |
|
159 | |||
148 | [logger_sqlalchemy] |
|
160 | [logger_sqlalchemy] | |
149 | level = ERROR |
|
161 | level = ERROR | |
150 | handlers = console |
|
162 | handlers = console | |
151 | qualname = sqlalchemy.engine |
|
163 | qualname = sqlalchemy.engine | |
152 | propagate = 0 |
|
164 | propagate = 0 | |
153 |
|
165 | |||
154 | ############## |
|
166 | ############## | |
155 | ## HANDLERS ## |
|
167 | ## HANDLERS ## | |
156 | ############## |
|
168 | ############## | |
157 |
|
169 | |||
158 | [handler_console] |
|
170 | [handler_console] | |
159 | class = StreamHandler |
|
171 | class = StreamHandler | |
160 | args = (sys.stderr,) |
|
172 | args = (sys.stderr,) | |
161 | level = NOTSET |
|
173 | level = NOTSET | |
162 | formatter = color_formatter |
|
174 | formatter = color_formatter | |
163 |
|
175 | |||
164 | ################ |
|
176 | ################ | |
165 | ## FORMATTERS ## |
|
177 | ## FORMATTERS ## | |
166 | ################ |
|
178 | ################ | |
167 |
|
179 | |||
168 | [formatter_generic] |
|
180 | [formatter_generic] | |
169 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
181 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
170 | datefmt = %Y-%m-%d %H:%M:%S |
|
182 | datefmt = %Y-%m-%d %H:%M:%S | |
171 |
|
183 | |||
172 | [formatter_color_formatter] |
|
184 | [formatter_color_formatter] | |
173 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
185 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
174 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
186 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
175 | datefmt = %Y-%m-%d %H:%M:%S No newline at end of file |
|
187 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now