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