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