Show More
@@ -1,83 +1,88 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | # RhodeCode VCSServer with HTTP Backend - configuration # |
|
2 | # RhodeCode VCSServer with HTTP Backend - configuration # | |
3 | # # |
|
3 | # # | |
4 | ################################################################################ |
|
4 | ################################################################################ | |
5 |
|
5 | |||
|
6 | ||||
|
7 | [server:main] | |||
|
8 | ## COMMON ## | |||
|
9 | host = 0.0.0.0 | |||
|
10 | port = 9900 | |||
|
11 | ||||
|
12 | ||||
|
13 | use = egg:waitress#main | |||
|
14 | ||||
|
15 | ||||
6 | [app:main] |
|
16 | [app:main] | |
7 | use = egg:rhodecode-vcsserver |
|
17 | use = egg:rhodecode-vcsserver | |
8 |
|
18 | |||
9 | pyramid.default_locale_name = en |
|
19 | pyramid.default_locale_name = en | |
10 | pyramid.includes = |
|
20 | pyramid.includes = | |
11 |
|
21 | |||
12 | # default locale used by VCS systems |
|
22 | ## default locale used by VCS systems | |
13 | locale = en_US.UTF-8 |
|
23 | locale = en_US.UTF-8 | |
14 |
|
24 | |||
15 | # cache regions, please don't change |
|
25 | ## cache regions, please don't change | |
16 | beaker.cache.regions = repo_object |
|
26 | beaker.cache.regions = repo_object | |
17 | beaker.cache.repo_object.type = memorylru |
|
27 | beaker.cache.repo_object.type = memorylru | |
18 | beaker.cache.repo_object.max_items = 100 |
|
28 | beaker.cache.repo_object.max_items = 100 | |
19 | # cache auto-expires after N seconds |
|
29 | ## cache auto-expires after N seconds | |
20 | beaker.cache.repo_object.expire = 300 |
|
30 | beaker.cache.repo_object.expire = 300 | |
21 | beaker.cache.repo_object.enabled = true |
|
31 | beaker.cache.repo_object.enabled = true | |
22 |
|
32 | |||
23 | # path to binaries for vcsserver, it should be set by the installer |
|
33 | ## path to binaries for vcsserver, it should be set by the installer | |
24 | # at installation time, e.g /home/user/vcsserver-1/profile/bin |
|
34 | ## at installation time, e.g /home/user/vcsserver-1/profile/bin | |
25 | core.binary_dir = "" |
|
35 | core.binary_dir = "" | |
26 |
|
36 | |||
27 | [server:main] |
|
|||
28 | ## COMMON ## |
|
|||
29 | host = 0.0.0.0 |
|
|||
30 | port = 9900 |
|
|||
31 |
|
37 | |||
32 | use = egg:waitress#main |
|
|||
33 |
|
38 | |||
34 |
|
39 | |||
35 | ################################ |
|
40 | ################################ | |
36 | ### LOGGING CONFIGURATION #### |
|
41 | ### LOGGING CONFIGURATION #### | |
37 | ################################ |
|
42 | ################################ | |
38 | [loggers] |
|
43 | [loggers] | |
39 | keys = root, vcsserver, beaker |
|
44 | keys = root, vcsserver, beaker | |
40 |
|
45 | |||
41 | [handlers] |
|
46 | [handlers] | |
42 | keys = console |
|
47 | keys = console | |
43 |
|
48 | |||
44 | [formatters] |
|
49 | [formatters] | |
45 | keys = generic |
|
50 | keys = generic | |
46 |
|
51 | |||
47 | ############# |
|
52 | ############# | |
48 | ## LOGGERS ## |
|
53 | ## LOGGERS ## | |
49 | ############# |
|
54 | ############# | |
50 | [logger_root] |
|
55 | [logger_root] | |
51 | level = NOTSET |
|
56 | level = NOTSET | |
52 | handlers = console |
|
57 | handlers = console | |
53 |
|
58 | |||
54 | [logger_vcsserver] |
|
59 | [logger_vcsserver] | |
55 | level = DEBUG |
|
60 | level = DEBUG | |
56 | handlers = |
|
61 | handlers = | |
57 | qualname = vcsserver |
|
62 | qualname = vcsserver | |
58 | propagate = 1 |
|
63 | propagate = 1 | |
59 |
|
64 | |||
60 | [logger_beaker] |
|
65 | [logger_beaker] | |
61 | level = DEBUG |
|
66 | level = DEBUG | |
62 | handlers = |
|
67 | handlers = | |
63 | qualname = beaker |
|
68 | qualname = beaker | |
64 | propagate = 1 |
|
69 | propagate = 1 | |
65 |
|
70 | |||
66 |
|
71 | |||
67 | ############## |
|
72 | ############## | |
68 | ## HANDLERS ## |
|
73 | ## HANDLERS ## | |
69 | ############## |
|
74 | ############## | |
70 |
|
75 | |||
71 | [handler_console] |
|
76 | [handler_console] | |
72 | class = StreamHandler |
|
77 | class = StreamHandler | |
73 | args = (sys.stderr,) |
|
78 | args = (sys.stderr,) | |
74 | level = DEBUG |
|
79 | level = DEBUG | |
75 | formatter = generic |
|
80 | formatter = generic | |
76 |
|
81 | |||
77 | ################ |
|
82 | ################ | |
78 | ## FORMATTERS ## |
|
83 | ## FORMATTERS ## | |
79 | ################ |
|
84 | ################ | |
80 |
|
85 | |||
81 | [formatter_generic] |
|
86 | [formatter_generic] | |
82 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
87 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
83 | datefmt = %Y-%m-%d %H:%M:%S |
|
88 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,106 +1,106 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | # RhodeCode VCSServer with HTTP Backend - configuration # |
|
2 | # RhodeCode VCSServer with HTTP Backend - configuration # | |
3 | # # |
|
3 | # # | |
4 | ################################################################################ |
|
4 | ################################################################################ | |
5 |
|
5 | |||
6 |
|
6 | |||
7 | [server:main] |
|
7 | [server:main] | |
8 | ## COMMON ## |
|
8 | ## COMMON ## | |
9 | host = 127.0.0.1 |
|
9 | host = 127.0.0.1 | |
10 | port = 9900 |
|
10 | port = 9900 | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | ########################## |
|
13 | ########################## | |
14 | ## GUNICORN WSGI SERVER ## |
|
14 | ## GUNICORN WSGI SERVER ## | |
15 | ########################## |
|
15 | ########################## | |
16 | ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini |
|
16 | ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini | |
17 | use = egg:gunicorn#main |
|
17 | use = egg:gunicorn#main | |
18 | ## Sets the number of process workers. Recommended |
|
18 | ## Sets the number of process workers. Recommended | |
19 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers |
|
19 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers | |
20 | workers = 2 |
|
20 | workers = 2 | |
21 | ## process name |
|
21 | ## process name | |
22 | proc_name = rhodecode_vcsserver |
|
22 | proc_name = rhodecode_vcsserver | |
23 | ## type of worker class, currently `sync` is the only option allowed. |
|
23 | ## type of worker class, currently `sync` is the only option allowed. | |
24 | worker_class = sync |
|
24 | worker_class = sync | |
25 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
25 | ## The maximum number of simultaneous clients. Valid only for Gevent | |
26 | #worker_connections = 10 |
|
26 | #worker_connections = 10 | |
27 | ## max number of requests that worker will handle before being gracefully |
|
27 | ## max number of requests that worker will handle before being gracefully | |
28 | ## restarted, could prevent memory leaks |
|
28 | ## restarted, could prevent memory leaks | |
29 | max_requests = 1000 |
|
29 | max_requests = 1000 | |
30 | max_requests_jitter = 30 |
|
30 | max_requests_jitter = 30 | |
31 | ## amount of time a worker can spend with handling a request before it |
|
31 | ## amount of time a worker can spend with handling a request before it | |
32 | ## gets killed and restarted. Set to 6hrs |
|
32 | ## gets killed and restarted. Set to 6hrs | |
33 | timeout = 21600 |
|
33 | timeout = 21600 | |
34 |
|
34 | |||
35 |
|
35 | |||
36 | [app:main] |
|
36 | [app:main] | |
37 | use = egg:rhodecode-vcsserver |
|
37 | use = egg:rhodecode-vcsserver | |
38 |
|
38 | |||
39 | pyramid.default_locale_name = en |
|
39 | pyramid.default_locale_name = en | |
40 | pyramid.includes = |
|
40 | pyramid.includes = | |
41 |
|
41 | |||
42 | # default locale used by VCS systems |
|
42 | ## default locale used by VCS systems | |
43 | locale = en_US.UTF-8 |
|
43 | locale = en_US.UTF-8 | |
44 |
|
44 | |||
45 | # cache regions, please don't change |
|
45 | ## cache regions, please don't change | |
46 | beaker.cache.regions = repo_object |
|
46 | beaker.cache.regions = repo_object | |
47 | beaker.cache.repo_object.type = memorylru |
|
47 | beaker.cache.repo_object.type = memorylru | |
48 | beaker.cache.repo_object.max_items = 100 |
|
48 | beaker.cache.repo_object.max_items = 100 | |
49 | # cache auto-expires after N seconds |
|
49 | ## cache auto-expires after N seconds | |
50 | beaker.cache.repo_object.expire = 300 |
|
50 | beaker.cache.repo_object.expire = 300 | |
51 | beaker.cache.repo_object.enabled = true |
|
51 | beaker.cache.repo_object.enabled = true | |
52 |
|
52 | |||
53 | # path to binaries for vcsserver, it should be set by the installer |
|
53 | ## path to binaries for vcsserver, it should be set by the installer | |
54 | # at installation time, e.g /home/user/vcsserver-1/profile/bin |
|
54 | ## at installation time, e.g /home/user/vcsserver-1/profile/bin | |
55 | core.binary_dir = "" |
|
55 | core.binary_dir = "" | |
56 |
|
56 | |||
57 |
|
57 | |||
58 | ################################ |
|
58 | ################################ | |
59 | ### LOGGING CONFIGURATION #### |
|
59 | ### LOGGING CONFIGURATION #### | |
60 | ################################ |
|
60 | ################################ | |
61 | [loggers] |
|
61 | [loggers] | |
62 | keys = root, vcsserver, beaker |
|
62 | keys = root, vcsserver, beaker | |
63 |
|
63 | |||
64 | [handlers] |
|
64 | [handlers] | |
65 | keys = console |
|
65 | keys = console | |
66 |
|
66 | |||
67 | [formatters] |
|
67 | [formatters] | |
68 | keys = generic |
|
68 | keys = generic | |
69 |
|
69 | |||
70 | ############# |
|
70 | ############# | |
71 | ## LOGGERS ## |
|
71 | ## LOGGERS ## | |
72 | ############# |
|
72 | ############# | |
73 | [logger_root] |
|
73 | [logger_root] | |
74 | level = NOTSET |
|
74 | level = NOTSET | |
75 | handlers = console |
|
75 | handlers = console | |
76 |
|
76 | |||
77 | [logger_vcsserver] |
|
77 | [logger_vcsserver] | |
78 | level = DEBUG |
|
78 | level = DEBUG | |
79 | handlers = |
|
79 | handlers = | |
80 | qualname = vcsserver |
|
80 | qualname = vcsserver | |
81 | propagate = 1 |
|
81 | propagate = 1 | |
82 |
|
82 | |||
83 | [logger_beaker] |
|
83 | [logger_beaker] | |
84 | level = DEBUG |
|
84 | level = DEBUG | |
85 | handlers = |
|
85 | handlers = | |
86 | qualname = beaker |
|
86 | qualname = beaker | |
87 | propagate = 1 |
|
87 | propagate = 1 | |
88 |
|
88 | |||
89 |
|
89 | |||
90 | ############## |
|
90 | ############## | |
91 | ## HANDLERS ## |
|
91 | ## HANDLERS ## | |
92 | ############## |
|
92 | ############## | |
93 |
|
93 | |||
94 | [handler_console] |
|
94 | [handler_console] | |
95 | class = StreamHandler |
|
95 | class = StreamHandler | |
96 | args = (sys.stderr,) |
|
96 | args = (sys.stderr,) | |
97 | level = DEBUG |
|
97 | level = DEBUG | |
98 | formatter = generic |
|
98 | formatter = generic | |
99 |
|
99 | |||
100 | ################ |
|
100 | ################ | |
101 | ## FORMATTERS ## |
|
101 | ## FORMATTERS ## | |
102 | ################ |
|
102 | ################ | |
103 |
|
103 | |||
104 | [formatter_generic] |
|
104 | [formatter_generic] | |
105 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
105 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
106 | datefmt = %Y-%m-%d %H:%M:%S No newline at end of file |
|
106 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now