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