Show More
@@ -1,138 +1,200 b'' | |||||
1 | ################################################################################ |
|
1 | ## -*- coding: utf-8 -*- | |
2 | # RhodeCode VCSServer with HTTP Backend - configuration # |
|
|||
3 | ################################################################################ |
|
|||
4 |
|
2 | |||
|
3 | ; ################################# | |||
|
4 | ; RHODECODE VCSSERVER CONFIGURATION | |||
|
5 | ; ################################# | |||
5 |
|
6 | |||
6 | [server:main] |
|
7 | [server:main] | |
7 | ## COMMON ## |
|
8 | ; COMMON HOST/IP CONFIG | |
8 | host = 0.0.0.0 |
|
9 | host = 0.0.0.0 | |
9 | port = 9900 |
|
10 | port = 9900 | |
10 |
|
11 | |||
11 |
|
|
12 | ; ################################################## | |
12 |
|
|
13 | ; WAITRESS WSGI SERVER - Recommended for Development | |
13 |
|
|
14 | ; ################################################## | |
14 |
|
15 | |||
|
16 | ; use server type | |||
15 | use = egg:waitress#main |
|
17 | use = egg:waitress#main | |
16 | ## number of worker threads |
|
18 | ||
|
19 | ; number of worker threads | |||
17 | threads = 5 |
|
20 | threads = 5 | |
18 | ## MAX BODY SIZE 100GB |
|
21 | ||
|
22 | ; MAX BODY SIZE 100GB | |||
19 | max_request_body_size = 107374182400 |
|
23 | max_request_body_size = 107374182400 | |
20 | ## Use poll instead of select, fixes file descriptors limits problems. |
|
24 | ||
21 | ## May not work on old windows systems. |
|
25 | ; Use poll instead of select, fixes file descriptors limits problems. | |
|
26 | ; May not work on old windows systems. | |||
22 | asyncore_use_poll = true |
|
27 | asyncore_use_poll = true | |
23 |
|
28 | |||
24 |
|
29 | |||
25 | ########################## |
|
30 | ; ########################### | |
26 |
|
|
31 | ; GUNICORN APPLICATION SERVER | |
27 | ########################## |
|
32 | ; ########################### | |
28 | ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini |
|
|||
29 |
|
33 | |||
|
34 | ; run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini | |||
|
35 | ||||
|
36 | ; Module to use, this setting shouldn't be changed | |||
30 | #use = egg:gunicorn#main |
|
37 | #use = egg:gunicorn#main | |
31 | ## Sets the number of process workers. More workers means more concurrent connections |
|
38 | ||
32 | ## RhodeCode can handle at the same time. Each additional worker also it increases |
|
39 | ; Sets the number of process workers. More workers means more concurrent connections | |
33 | ## memory usage as each has it's own set of caches. |
|
40 | ; RhodeCode can handle at the same time. Each additional worker also it increases | |
34 | ## Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more |
|
41 | ; memory usage as each has it's own set of caches. | |
35 | ## than 8-10 unless for really big deployments .e.g 700-1000 users. |
|
42 | ; Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more | |
36 | ## `instance_id = *` must be set in the [app:main] section below (which is the default) |
|
43 | ; than 8-10 unless for really big deployments .e.g 700-1000 users. | |
37 | ## when using more than 1 worker. |
|
44 | ; `instance_id = *` must be set in the [app:main] section below (which is the default) | |
|
45 | ; when using more than 1 worker. | |||
38 | #workers = 2 |
|
46 | #workers = 2 | |
39 |
|
47 | |||
40 |
|
|
48 | ; Gunicorn access log level | |
41 | #loglevel = info |
|
49 | #loglevel = info | |
42 |
|
50 | |||
43 |
|
|
51 | ; Process name visible in process list | |
44 | #proc_name = rhodecode_vcsserver |
|
52 | #proc_name = rhodecode_vcsserver | |
45 |
|
53 | |||
46 | ## type of worker class, currently `sync` is the only option allowed. |
|
54 | ; Type of worker class, one of sync, gevent | |
|
55 | ; currently `sync` is the only option allowed. | |||
47 | #worker_class = sync |
|
56 | #worker_class = sync | |
48 |
|
57 | |||
49 |
|
|
58 | ; The maximum number of simultaneous clients. Valid only for gevent | |
50 | #worker_connections = 10 |
|
59 | #worker_connections = 10 | |
51 |
|
60 | |||
52 |
|
|
61 | ; Max number of requests that worker will handle before being gracefully restarted. | |
53 | ## restarted, could prevent memory leaks |
|
62 | ; Prevents memory leaks, jitter adds variability so not all workers are restarted at once. | |
54 | #max_requests = 1000 |
|
63 | #max_requests = 1000 | |
55 | #max_requests_jitter = 30 |
|
64 | #max_requests_jitter = 30 | |
56 |
|
65 | |||
57 |
|
|
66 | ; Amount of time a worker can spend with handling a request before it | |
58 |
|
|
67 | ; gets killed and restarted. By default set to 21600 (6hrs) | |
|
68 | ; Examples: 1800 (30min), 3600 (1hr), 7200 (2hr), 43200 (12h) | |||
59 | #timeout = 21600 |
|
69 | #timeout = 21600 | |
60 |
|
70 | |||
61 |
|
|
71 | ; The maximum size of HTTP request line in bytes. | |
62 |
|
|
72 | ; 0 for unlimited | |
63 | #limit_request_line = 0 |
|
73 | #limit_request_line = 0 | |
64 |
|
74 | |||
65 |
|
|
75 | ; Limit the number of HTTP headers fields in a request. | |
66 |
|
|
76 | ; By default this value is 100 and can't be larger than 32768. | |
67 | #limit_request_fields = 32768 |
|
77 | #limit_request_fields = 32768 | |
68 |
|
78 | |||
69 |
|
|
79 | ; Limit the allowed size of an HTTP request header field. | |
70 |
|
|
80 | ; Value is a positive number or 0. | |
71 |
|
|
81 | ; Setting it to 0 will allow unlimited header field sizes. | |
72 | #limit_request_field_size = 0 |
|
82 | #limit_request_field_size = 0 | |
73 |
|
83 | |||
74 |
|
|
84 | ; Timeout for graceful workers restart. | |
75 |
|
|
85 | ; After receiving a restart signal, workers have this much time to finish | |
76 |
|
|
86 | ; serving requests. Workers still alive after the timeout (starting from the | |
77 |
|
|
87 | ; receipt of the restart signal) are force killed. | |
|
88 | ; Examples: 1800 (30min), 3600 (1hr), 7200 (2hr), 43200 (12h) | |||
78 | #graceful_timeout = 3600 |
|
89 | #graceful_timeout = 3600 | |
79 |
|
90 | |||
80 | # The number of seconds to wait for requests on a Keep-Alive connection. |
|
91 | # The number of seconds to wait for requests on a Keep-Alive connection. | |
81 | # Generally set in the 1-5 seconds range. |
|
92 | # Generally set in the 1-5 seconds range. | |
82 | #keepalive = 2 |
|
93 | #keepalive = 2 | |
83 |
|
94 | |||
84 |
|
|
95 | ; Maximum memory usage that each worker can use before it will receive a | |
85 | ## graceful restart signal, e.g 10MB = 10485760 (10 * 1024 * 1024) |
|
96 | ; graceful restart signal 0 = memory monitoring is disabled | |
86 | # 0 = memory monitoring is disabled |
|
97 | ; Examples: 268435456 (256MB), 536870912 (512MB) | |
|
98 | ; 1073741824 (1GB), 2147483648 (2GB), 4294967296 (4GB) | |||
87 | #memory_max_usage = 0 |
|
99 | #memory_max_usage = 0 | |
88 |
|
100 | |||
89 |
|
|
101 | ; How often in seconds to check for memory usage for each gunicorn worker | |
90 | #memory_usage_check_interval = 60 |
|
102 | #memory_usage_check_interval = 60 | |
91 |
|
103 | |||
92 |
|
|
104 | ; Threshold value for which we don't recycle worker if GarbageCollection | |
93 |
|
|
105 | ; frees up enough resources. Before each restart we try to run GC on worker | |
94 |
|
|
106 | ; in case we get enough free memory after that, restart will not happen. | |
95 | #memory_usage_recovery_threshold = 0.8 |
|
107 | #memory_usage_recovery_threshold = 0.8 | |
96 |
|
108 | |||
97 |
|
109 | |||
98 | [app:main] |
|
110 | [app:main] | |
|
111 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |||
|
112 | ; of this file | |||
99 | use = egg:rhodecode-vcsserver |
|
113 | use = egg:rhodecode-vcsserver | |
100 |
|
114 | |||
101 | pyramid.default_locale_name = en |
|
115 | ||
|
116 | ; ############# | |||
|
117 | ; DEBUG OPTIONS | |||
|
118 | ; ############# | |||
|
119 | ||||
|
120 | # During development the we want to have the debug toolbar enabled | |||
102 | pyramid.includes = |
|
121 | pyramid.includes = | |
|
122 | pyramid_debugtoolbar | |||
103 |
|
123 | |||
104 | ## default locale used by VCS systems |
|
124 | debugtoolbar.hosts = 0.0.0.0/0 | |
|
125 | debugtoolbar.exclude_prefixes = | |||
|
126 | /css | |||
|
127 | /fonts | |||
|
128 | /images | |||
|
129 | /js | |||
|
130 | ||||
|
131 | ; ################# | |||
|
132 | ; END DEBUG OPTIONS | |||
|
133 | ; ################# | |||
|
134 | ||||
|
135 | ; Pyramid default locales, we need this to be set | |||
|
136 | pyramid.default_locale_name = en | |||
|
137 | ||||
|
138 | ; default locale used by VCS systems | |||
105 | locale = en_US.UTF-8 |
|
139 | locale = en_US.UTF-8 | |
106 |
|
140 | |||
107 |
|
141 | ; path to binaries for vcsserver, it should be set by the installer | ||
108 | ## path to binaries for vcsserver, it should be set by the installer |
|
142 | ; at installation time, e.g /home/user/vcsserver-1/profile/bin | |
109 | ## at installation time, e.g /home/user/vcsserver-1/profile/bin |
|
143 | ; it can also be a path to nix-build output in case of development | |
110 | core.binary_dir = "" |
|
144 | core.binary_dir = "" | |
111 |
|
145 | |||
112 |
|
|
146 | ; Custom exception store path, defaults to TMPDIR | |
113 |
|
|
147 | ; This is used to store exception from RhodeCode in shared directory | |
114 | #exception_tracker.store_path = |
|
148 | #exception_tracker.store_path = | |
115 |
|
149 | |||
116 | ## Default cache dir for caches. Putting this into a ramdisk |
|
150 | ; ############# | |
117 | ## can boost performance, eg. /tmpfs/data_ramdisk, however this directory might require |
|
151 | ; DOGPILE CACHE | |
118 | ## large amount of space |
|
152 | ; ############# | |
119 | cache_dir = %(here)s/rcdev/data |
|
153 | ||
|
154 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. | |||
|
155 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | |||
|
156 | cache_dir = %(here)s/data | |||
120 |
|
157 | |||
121 | ## cache region for storing repo_objects cache |
|
158 | ; *************************************** | |
|
159 | ; `repo_object` cache, default file based | |||
|
160 | ; *************************************** | |||
|
161 | ||||
|
162 | ; `repo_object` cache settings for vcs methods for repositories | |||
122 | rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace |
|
163 | rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |
123 | ## cache auto-expires after N seconds (2592000 == 30 days) |
|
164 | ||
|
165 | ; cache auto-expires after N seconds | |||
|
166 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |||
124 | rc_cache.repo_object.expiration_time = 2592000 |
|
167 | rc_cache.repo_object.expiration_time = 2592000 | |
125 |
|
168 | |||
126 |
|
|
169 | ; cache file store path, defaults to temporary directory if not set | |
127 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db |
|
170 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db | |
128 |
|
171 | |||
129 | ## max size of LRU, old values will be discarded if the size of cache reaches max_size |
|
172 | ; ********************************************************** | |
130 | rc_cache.repo_object.max_size = 100 |
|
173 | ; `repo_object` cache with redis backend | |
|
174 | ; recommended for larger instance, or for better performance | |||
|
175 | ; ********************************************************** | |||
|
176 | ||||
|
177 | ; `repo_object` cache settings for vcs methods for repositories | |||
|
178 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack | |||
|
179 | ||||
|
180 | ; cache auto-expires after N seconds | |||
|
181 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |||
|
182 | #rc_cache.repo_object.expiration_time = 2592000 | |||
|
183 | ||||
|
184 | ; redis_expiration_time needs to be greater then expiration_time | |||
|
185 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 | |||
|
186 | ||||
|
187 | #rc_cache.repo_object.arguments.host = localhost | |||
|
188 | #rc_cache.repo_object.arguments.port = 6379 | |||
|
189 | #rc_cache.repo_object.arguments.db = 5 | |||
|
190 | #rc_cache.repo_object.arguments.socket_timeout = 30 | |||
|
191 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |||
|
192 | #rc_cache.repo_object.arguments.distributed_lock = true | |||
131 |
|
193 | |||
132 |
|
194 | |||
133 |
|
|
195 | ; ##################### | |
134 |
|
|
196 | ; LOGGING CONFIGURATION | |
135 |
|
|
197 | ; ##################### | |
136 | [loggers] |
|
198 | [loggers] | |
137 | keys = root, vcsserver |
|
199 | keys = root, vcsserver | |
138 |
|
200 | |||
@@ -142,9 +204,9 b' keys = console' | |||||
142 | [formatters] |
|
204 | [formatters] | |
143 | keys = generic |
|
205 | keys = generic | |
144 |
|
206 | |||
145 |
|
|
207 | ; ####### | |
146 |
|
|
208 | ; LOGGERS | |
147 |
|
|
209 | ; ####### | |
148 | [logger_root] |
|
210 | [logger_root] | |
149 | level = NOTSET |
|
211 | level = NOTSET | |
150 | handlers = console |
|
212 | handlers = console | |
@@ -156,19 +218,19 b' qualname = vcsserver' | |||||
156 | propagate = 1 |
|
218 | propagate = 1 | |
157 |
|
219 | |||
158 |
|
220 | |||
159 |
|
|
221 | ; ######## | |
160 |
|
|
222 | ; HANDLERS | |
161 |
|
|
223 | ; ######## | |
162 |
|
224 | |||
163 | [handler_console] |
|
225 | [handler_console] | |
164 | class = StreamHandler |
|
226 | class = StreamHandler | |
165 | args = (sys.stderr,) |
|
227 | args = (sys.stderr, ) | |
166 | level = DEBUG |
|
228 | level = DEBUG | |
167 | formatter = generic |
|
229 | formatter = generic | |
168 |
|
230 | |||
169 |
|
|
231 | ; ########## | |
170 |
|
|
232 | ; FORMATTERS | |
171 |
|
|
233 | ; ########## | |
172 |
|
234 | |||
173 | [formatter_generic] |
|
235 | [formatter_generic] | |
174 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
236 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
@@ -1,138 +1,163 b'' | |||||
1 | ################################################################################ |
|
1 | ## -*- coding: utf-8 -*- | |
2 | # RhodeCode VCSServer with HTTP Backend - configuration # |
|
|||
3 | ################################################################################ |
|
|||
4 |
|
2 | |||
|
3 | ; ################################# | |||
|
4 | ; RHODECODE VCSSERVER CONFIGURATION | |||
|
5 | ; ################################# | |||
5 |
|
6 | |||
6 | [server:main] |
|
7 | [server:main] | |
7 | ## COMMON ## |
|
8 | ; COMMON HOST/IP CONFIG | |
8 | host = 127.0.0.1 |
|
9 | host = 127.0.0.1 | |
9 | port = 9900 |
|
10 | port = 9900 | |
10 |
|
11 | |||
11 | ########################################################### |
|
|||
12 | ## WAITRESS WSGI SERVER - Recommended for Development #### |
|
|||
13 | ########################################################### |
|
|||
14 |
|
12 | |||
15 | #use = egg:waitress#main |
|
13 | ; ########################### | |
16 | ## number of worker threads |
|
14 | ; GUNICORN APPLICATION SERVER | |
17 | #threads = 5 |
|
15 | ; ########################### | |
18 | ## MAX BODY SIZE 100GB |
|
|||
19 | #max_request_body_size = 107374182400 |
|
|||
20 | ## Use poll instead of select, fixes file descriptors limits problems. |
|
|||
21 | ## May not work on old windows systems. |
|
|||
22 | #asyncore_use_poll = true |
|
|||
23 |
|
16 | |||
|
17 | ; run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini | |||
24 |
|
18 | |||
25 | ########################## |
|
19 | ; Module to use, this setting shouldn't be changed | |
26 | ## GUNICORN WSGI SERVER ## |
|
|||
27 | ########################## |
|
|||
28 | ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini |
|
|||
29 |
|
||||
30 | use = egg:gunicorn#main |
|
20 | use = egg:gunicorn#main | |
31 | ## Sets the number of process workers. More workers means more concurrent connections |
|
21 | ||
32 | ## RhodeCode can handle at the same time. Each additional worker also it increases |
|
22 | ; Sets the number of process workers. More workers means more concurrent connections | |
33 | ## memory usage as each has it's own set of caches. |
|
23 | ; RhodeCode can handle at the same time. Each additional worker also it increases | |
34 | ## Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more |
|
24 | ; memory usage as each has it's own set of caches. | |
35 | ## than 8-10 unless for really big deployments .e.g 700-1000 users. |
|
25 | ; Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more | |
36 | ## `instance_id = *` must be set in the [app:main] section below (which is the default) |
|
26 | ; than 8-10 unless for really big deployments .e.g 700-1000 users. | |
37 | ## when using more than 1 worker. |
|
27 | ; `instance_id = *` must be set in the [app:main] section below (which is the default) | |
|
28 | ; when using more than 1 worker. | |||
38 | workers = 2 |
|
29 | workers = 2 | |
39 |
|
30 | |||
40 |
|
|
31 | ; Gunicorn access log level | |
41 | loglevel = info |
|
32 | loglevel = info | |
42 |
|
33 | |||
43 |
|
|
34 | ; Process name visible in process list | |
44 | proc_name = rhodecode_vcsserver |
|
35 | proc_name = rhodecode_vcsserver | |
45 |
|
36 | |||
46 | ## type of worker class, currently `sync` is the only option allowed. |
|
37 | ; Type of worker class, one of sync, gevent | |
|
38 | ; currently `sync` is the only option allowed. | |||
47 | worker_class = sync |
|
39 | worker_class = sync | |
48 |
|
40 | |||
49 |
|
|
41 | ; The maximum number of simultaneous clients. Valid only for gevent | |
50 | worker_connections = 10 |
|
42 | worker_connections = 10 | |
51 |
|
43 | |||
52 |
|
|
44 | ; Max number of requests that worker will handle before being gracefully restarted. | |
53 | ## restarted, could prevent memory leaks |
|
45 | ; Prevents memory leaks, jitter adds variability so not all workers are restarted at once. | |
54 | max_requests = 1000 |
|
46 | max_requests = 1000 | |
55 | max_requests_jitter = 30 |
|
47 | max_requests_jitter = 30 | |
56 |
|
48 | |||
57 |
|
|
49 | ; Amount of time a worker can spend with handling a request before it | |
58 |
|
|
50 | ; gets killed and restarted. By default set to 21600 (6hrs) | |
|
51 | ; Examples: 1800 (30min), 3600 (1hr), 7200 (2hr), 43200 (12h) | |||
59 | timeout = 21600 |
|
52 | timeout = 21600 | |
60 |
|
53 | |||
61 |
|
|
54 | ; The maximum size of HTTP request line in bytes. | |
62 |
|
|
55 | ; 0 for unlimited | |
63 | limit_request_line = 0 |
|
56 | limit_request_line = 0 | |
64 |
|
57 | |||
65 |
|
|
58 | ; Limit the number of HTTP headers fields in a request. | |
66 |
|
|
59 | ; By default this value is 100 and can't be larger than 32768. | |
67 | limit_request_fields = 32768 |
|
60 | limit_request_fields = 32768 | |
68 |
|
61 | |||
69 |
|
|
62 | ; Limit the allowed size of an HTTP request header field. | |
70 |
|
|
63 | ; Value is a positive number or 0. | |
71 |
|
|
64 | ; Setting it to 0 will allow unlimited header field sizes. | |
72 | limit_request_field_size = 0 |
|
65 | limit_request_field_size = 0 | |
73 |
|
66 | |||
74 |
|
|
67 | ; Timeout for graceful workers restart. | |
75 |
|
|
68 | ; After receiving a restart signal, workers have this much time to finish | |
76 |
|
|
69 | ; serving requests. Workers still alive after the timeout (starting from the | |
77 |
|
|
70 | ; receipt of the restart signal) are force killed. | |
|
71 | ; Examples: 1800 (30min), 3600 (1hr), 7200 (2hr), 43200 (12h) | |||
78 | graceful_timeout = 3600 |
|
72 | graceful_timeout = 3600 | |
79 |
|
73 | |||
80 | # The number of seconds to wait for requests on a Keep-Alive connection. |
|
74 | # The number of seconds to wait for requests on a Keep-Alive connection. | |
81 | # Generally set in the 1-5 seconds range. |
|
75 | # Generally set in the 1-5 seconds range. | |
82 | keepalive = 2 |
|
76 | keepalive = 2 | |
83 |
|
77 | |||
84 |
|
|
78 | ; Maximum memory usage that each worker can use before it will receive a | |
85 | ## graceful restart signal, e.g 10MB = 10485760 (10 * 1024 * 1024) |
|
79 | ; graceful restart signal 0 = memory monitoring is disabled | |
86 | # 0 = memory monitoring is disabled |
|
80 | ; Examples: 268435456 (256MB), 536870912 (512MB) | |
|
81 | ; 1073741824 (1GB), 2147483648 (2GB), 4294967296 (4GB) | |||
87 | memory_max_usage = 0 |
|
82 | memory_max_usage = 0 | |
88 |
|
83 | |||
89 |
|
|
84 | ; How often in seconds to check for memory usage for each gunicorn worker | |
90 | memory_usage_check_interval = 60 |
|
85 | memory_usage_check_interval = 60 | |
91 |
|
86 | |||
92 |
|
|
87 | ; Threshold value for which we don't recycle worker if GarbageCollection | |
93 |
|
|
88 | ; frees up enough resources. Before each restart we try to run GC on worker | |
94 |
|
|
89 | ; in case we get enough free memory after that, restart will not happen. | |
95 | memory_usage_recovery_threshold = 0.8 |
|
90 | memory_usage_recovery_threshold = 0.8 | |
96 |
|
91 | |||
97 |
|
92 | |||
98 | [app:main] |
|
93 | [app:main] | |
|
94 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |||
|
95 | ; of this file | |||
99 | use = egg:rhodecode-vcsserver |
|
96 | use = egg:rhodecode-vcsserver | |
100 |
|
97 | |||
|
98 | ; Pyramid default locales, we need this to be set | |||
101 | pyramid.default_locale_name = en |
|
99 | pyramid.default_locale_name = en | |
102 | pyramid.includes = |
|
|||
103 |
|
100 | |||
104 |
|
|
101 | ; default locale used by VCS systems | |
105 | locale = en_US.UTF-8 |
|
102 | locale = en_US.UTF-8 | |
106 |
|
103 | |||
107 |
|
104 | ; path to binaries for vcsserver, it should be set by the installer | ||
108 | ## path to binaries for vcsserver, it should be set by the installer |
|
105 | ; at installation time, e.g /home/user/vcsserver-1/profile/bin | |
109 | ## at installation time, e.g /home/user/vcsserver-1/profile/bin |
|
106 | ; it can also be a path to nix-build output in case of development | |
110 | core.binary_dir = "" |
|
107 | core.binary_dir = "" | |
111 |
|
108 | |||
112 |
|
|
109 | ; Custom exception store path, defaults to TMPDIR | |
113 |
|
|
110 | ; This is used to store exception from RhodeCode in shared directory | |
114 | #exception_tracker.store_path = |
|
111 | #exception_tracker.store_path = | |
115 |
|
112 | |||
116 | ## Default cache dir for caches. Putting this into a ramdisk |
|
113 | ; ############# | |
117 | ## can boost performance, eg. /tmpfs/data_ramdisk, however this directory might require |
|
114 | ; DOGPILE CACHE | |
118 | ## large amount of space |
|
115 | ; ############# | |
119 | cache_dir = %(here)s/rcdev/data |
|
116 | ||
|
117 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. | |||
|
118 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | |||
|
119 | cache_dir = %(here)s/data | |||
120 |
|
120 | |||
121 | ## cache region for storing repo_objects cache |
|
121 | ; *************************************** | |
|
122 | ; `repo_object` cache, default file based | |||
|
123 | ; *************************************** | |||
|
124 | ||||
|
125 | ; `repo_object` cache settings for vcs methods for repositories | |||
122 | rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace |
|
126 | rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |
123 | ## cache auto-expires after N seconds (2592000 == 30 days) |
|
127 | ||
|
128 | ; cache auto-expires after N seconds | |||
|
129 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |||
124 | rc_cache.repo_object.expiration_time = 2592000 |
|
130 | rc_cache.repo_object.expiration_time = 2592000 | |
125 |
|
131 | |||
126 |
|
|
132 | ; cache file store path, defaults to temporary directory if not set | |
127 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db |
|
133 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db | |
128 |
|
134 | |||
129 | ## max size of LRU, old values will be discarded if the size of cache reaches max_size |
|
135 | ; ********************************************************** | |
130 | rc_cache.repo_object.max_size = 100 |
|
136 | ; `repo_object` cache with redis backend | |
|
137 | ; recommended for larger instance, or for better performance | |||
|
138 | ; ********************************************************** | |||
|
139 | ||||
|
140 | ; `repo_object` cache settings for vcs methods for repositories | |||
|
141 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack | |||
|
142 | ||||
|
143 | ; cache auto-expires after N seconds | |||
|
144 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |||
|
145 | #rc_cache.repo_object.expiration_time = 2592000 | |||
|
146 | ||||
|
147 | ; redis_expiration_time needs to be greater then expiration_time | |||
|
148 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 | |||
|
149 | ||||
|
150 | #rc_cache.repo_object.arguments.host = localhost | |||
|
151 | #rc_cache.repo_object.arguments.port = 6379 | |||
|
152 | #rc_cache.repo_object.arguments.db = 5 | |||
|
153 | #rc_cache.repo_object.arguments.socket_timeout = 30 | |||
|
154 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |||
|
155 | #rc_cache.repo_object.arguments.distributed_lock = true | |||
131 |
|
156 | |||
132 |
|
157 | |||
133 |
|
|
158 | ; ##################### | |
134 |
|
|
159 | ; LOGGING CONFIGURATION | |
135 |
|
|
160 | ; ##################### | |
136 | [loggers] |
|
161 | [loggers] | |
137 | keys = root, vcsserver |
|
162 | keys = root, vcsserver | |
138 |
|
163 | |||
@@ -142,9 +167,9 b' keys = console' | |||||
142 | [formatters] |
|
167 | [formatters] | |
143 | keys = generic |
|
168 | keys = generic | |
144 |
|
169 | |||
145 |
|
|
170 | ; ####### | |
146 |
|
|
171 | ; LOGGERS | |
147 |
|
|
172 | ; ####### | |
148 | [logger_root] |
|
173 | [logger_root] | |
149 | level = NOTSET |
|
174 | level = NOTSET | |
150 | handlers = console |
|
175 | handlers = console | |
@@ -156,19 +181,19 b' qualname = vcsserver' | |||||
156 | propagate = 1 |
|
181 | propagate = 1 | |
157 |
|
182 | |||
158 |
|
183 | |||
159 |
|
|
184 | ; ######## | |
160 |
|
|
185 | ; HANDLERS | |
161 |
|
|
186 | ; ######## | |
162 |
|
187 | |||
163 | [handler_console] |
|
188 | [handler_console] | |
164 | class = StreamHandler |
|
189 | class = StreamHandler | |
165 | args = (sys.stderr,) |
|
190 | args = (sys.stderr, ) | |
166 |
level = |
|
191 | level = INFO | |
167 | formatter = generic |
|
192 | formatter = generic | |
168 |
|
193 | |||
169 |
|
|
194 | ; ########## | |
170 |
|
|
195 | ; FORMATTERS | |
171 |
|
|
196 | ; ########## | |
172 |
|
197 | |||
173 | [formatter_generic] |
|
198 | [formatter_generic] | |
174 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
199 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
General Comments 0
You need to be logged in to leave comments.
Login now