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