Show More
@@ -1,103 +1,102 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 |
## type of worker class, |
|
|
24 | ## recommended for bigger setup is using of of other than sync one | |
|
23 | ## type of worker class, currently `sync` is the only option allowed. | |
|
25 | 24 | worker_class = sync |
|
26 | 25 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
27 | 26 | #worker_connections = 10 |
|
28 | 27 | ## max number of requests that worker will handle before being gracefully |
|
29 | 28 | ## restarted, could prevent memory leaks |
|
30 | 29 | max_requests = 1000 |
|
31 | 30 | max_requests_jitter = 30 |
|
32 | 31 | ## amount of time a worker can spend with handling a request before it |
|
33 | 32 | ## gets killed and restarted. Set to 6hrs |
|
34 | 33 | timeout = 21600 |
|
35 | 34 | |
|
36 | 35 | |
|
37 | 36 | [app:main] |
|
38 | 37 | use = egg:rhodecode-vcsserver |
|
39 | 38 | |
|
40 | 39 | pyramid.default_locale_name = en |
|
41 | 40 | pyramid.includes = |
|
42 | 41 | |
|
43 | 42 | ## default locale used by VCS systems |
|
44 | 43 | locale = en_US.UTF-8 |
|
45 | 44 | |
|
46 | 45 | # cache regions, please don't change |
|
47 | 46 | beaker.cache.regions = repo_object |
|
48 | 47 | beaker.cache.repo_object.type = memorylru |
|
49 | 48 | beaker.cache.repo_object.max_items = 100 |
|
50 | 49 | # cache auto-expires after N seconds |
|
51 | 50 | beaker.cache.repo_object.expire = 300 |
|
52 | 51 | beaker.cache.repo_object.enabled = true |
|
53 | 52 | |
|
54 | 53 | |
|
55 | 54 | ################################ |
|
56 | 55 | ### LOGGING CONFIGURATION #### |
|
57 | 56 | ################################ |
|
58 | 57 | [loggers] |
|
59 | 58 | keys = root, vcsserver, beaker |
|
60 | 59 | |
|
61 | 60 | [handlers] |
|
62 | 61 | keys = console |
|
63 | 62 | |
|
64 | 63 | [formatters] |
|
65 | 64 | keys = generic |
|
66 | 65 | |
|
67 | 66 | ############# |
|
68 | 67 | ## LOGGERS ## |
|
69 | 68 | ############# |
|
70 | 69 | [logger_root] |
|
71 | 70 | level = NOTSET |
|
72 | 71 | handlers = console |
|
73 | 72 | |
|
74 | 73 | [logger_vcsserver] |
|
75 | 74 | level = DEBUG |
|
76 | 75 | handlers = |
|
77 | 76 | qualname = vcsserver |
|
78 | 77 | propagate = 1 |
|
79 | 78 | |
|
80 | 79 | [logger_beaker] |
|
81 | 80 | level = DEBUG |
|
82 | 81 | handlers = |
|
83 | 82 | qualname = beaker |
|
84 | 83 | propagate = 1 |
|
85 | 84 | |
|
86 | 85 | |
|
87 | 86 | ############## |
|
88 | 87 | ## HANDLERS ## |
|
89 | 88 | ############## |
|
90 | 89 | |
|
91 | 90 | [handler_console] |
|
92 | 91 | class = StreamHandler |
|
93 | 92 | args = (sys.stderr,) |
|
94 | 93 | level = DEBUG |
|
95 | 94 | formatter = generic |
|
96 | 95 | |
|
97 | 96 | ################ |
|
98 | 97 | ## FORMATTERS ## |
|
99 | 98 | ################ |
|
100 | 99 | |
|
101 | 100 | [formatter_generic] |
|
102 | 101 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
103 | 102 | 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