Show More
@@ -1,77 +1,138 b'' | |||||
1 | ################################################################################ |
|
1 | ## -*- coding: utf-8 -*- | |
2 | # RhodeCode VCSServer with HTTP Backend - configuration # |
|
2 | ||
3 | # # |
|
3 | ; ################################# | |
4 | ################################################################################ |
|
4 | ; RHODECODE VCSSERVER CONFIGURATION | |
|
5 | ; ################################# | |||
|
6 | ||||
|
7 | [server:main] | |||
|
8 | ; COMMON HOST/IP CONFIG | |||
|
9 | host = 127.0.0.1 | |||
|
10 | port = 9900 | |||
|
11 | ||||
|
12 | ||||
|
13 | ; ########################### | |||
|
14 | ; GUNICORN APPLICATION SERVER | |||
|
15 | ; ########################### | |||
|
16 | ||||
|
17 | ; run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini | |||
|
18 | ||||
|
19 | ; Module to use, this setting shouldn't be changed | |||
|
20 | use = egg:gunicorn#main | |||
5 |
|
21 | |||
6 | [app:main] |
|
22 | [app:main] | |
|
23 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |||
|
24 | ; of this file | |||
7 | use = egg:rhodecode-vcsserver |
|
25 | use = egg:rhodecode-vcsserver | |
8 |
|
26 | |||
|
27 | ; Pyramid default locales, we need this to be set | |||
9 | pyramid.default_locale_name = en |
|
28 | pyramid.default_locale_name = en | |
10 | pyramid.includes = |
|
|||
11 |
|
29 | |||
12 |
|
|
30 | ; default locale used by VCS systems | |
13 | locale = en_US.UTF-8 |
|
31 | locale = en_US.UTF-8 | |
14 |
|
32 | |||
15 | # cache regions, please don't change |
|
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 | |||
|
35 | ; it can also be a path to nix-build output in case of development | |||
|
36 | core.binary_dir = "" | |||
|
37 | ||||
|
38 | ; Custom exception store path, defaults to TMPDIR | |||
|
39 | ; This is used to store exception from RhodeCode in shared directory | |||
|
40 | #exception_tracker.store_path = | |||
|
41 | ||||
|
42 | ; ############# | |||
|
43 | ; DOGPILE CACHE | |||
|
44 | ; ############# | |||
|
45 | ||||
|
46 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. | |||
|
47 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | |||
|
48 | cache_dir = %(here)s/data | |||
|
49 | ||||
|
50 | ; *************************************** | |||
|
51 | ; `repo_object` cache, default file based | |||
|
52 | ; *************************************** | |||
|
53 | ||||
|
54 | ; `repo_object` cache settings for vcs methods for repositories | |||
|
55 | rc_cache.repo_object.backend = dogpile.cache.rc.memory_lru | |||
|
56 | ||||
|
57 | ; cache auto-expires after N seconds | |||
|
58 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |||
|
59 | rc_cache.repo_object.expiration_time = 2592000 | |||
|
60 | ||||
|
61 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |||
|
62 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db | |||
|
63 | ||||
|
64 | ; *********************************************************** | |||
|
65 | ; `repo_object` cache with redis backend | |||
|
66 | ; recommended for larger instance, and for better performance | |||
|
67 | ; *********************************************************** | |||
|
68 | ||||
|
69 | ; `repo_object` cache settings for vcs methods for repositories | |||
|
70 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack | |||
|
71 | ||||
|
72 | ; cache auto-expires after N seconds | |||
|
73 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |||
|
74 | #rc_cache.repo_object.expiration_time = 2592000 | |||
|
75 | ||||
|
76 | ; redis_expiration_time needs to be greater then expiration_time | |||
|
77 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 | |||
|
78 | ||||
|
79 | #rc_cache.repo_object.arguments.host = localhost | |||
|
80 | #rc_cache.repo_object.arguments.port = 6379 | |||
|
81 | #rc_cache.repo_object.arguments.db = 5 | |||
|
82 | #rc_cache.repo_object.arguments.socket_timeout = 30 | |||
|
83 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |||
|
84 | #rc_cache.repo_object.arguments.distributed_lock = true | |||
|
85 | ||||
|
86 | # legacy cache regions, please don't change | |||
16 | beaker.cache.regions = repo_object |
|
87 | beaker.cache.regions = repo_object | |
17 | beaker.cache.repo_object.type = memorylru |
|
88 | beaker.cache.repo_object.type = memorylru | |
18 | beaker.cache.repo_object.max_items = 100 |
|
89 | beaker.cache.repo_object.max_items = 100 | |
19 | # cache auto-expires after N seconds |
|
90 | # cache auto-expires after N seconds | |
20 | beaker.cache.repo_object.expire = 300 |
|
91 | beaker.cache.repo_object.expire = 300 | |
21 | beaker.cache.repo_object.enabled = true |
|
92 | beaker.cache.repo_object.enabled = true | |
22 |
|
93 | |||
23 | [server:main] |
|
|||
24 | host = 127.0.0.1 |
|
|||
25 | port = 9900 |
|
|||
26 |
|
94 | |||
27 | use = egg:gunicorn#main |
|
|||
28 |
|
95 | |||
29 |
|
|
96 | ; ##################### | |
30 |
|
|
97 | ; LOGGING CONFIGURATION | |
31 |
|
|
98 | ; ##################### | |
32 | [loggers] |
|
99 | [loggers] | |
33 |
keys = root, vcsserver |
|
100 | keys = root, vcsserver | |
34 |
|
101 | |||
35 | [handlers] |
|
102 | [handlers] | |
36 | keys = console |
|
103 | keys = console | |
37 |
|
104 | |||
38 | [formatters] |
|
105 | [formatters] | |
39 | keys = generic |
|
106 | keys = generic | |
40 |
|
107 | |||
41 |
|
|
108 | ; ####### | |
42 |
|
|
109 | ; LOGGERS | |
43 |
|
|
110 | ; ####### | |
44 | [logger_root] |
|
111 | [logger_root] | |
45 | level = NOTSET |
|
112 | level = NOTSET | |
46 | handlers = console |
|
113 | handlers = console | |
47 |
|
114 | |||
48 | [logger_vcsserver] |
|
115 | [logger_vcsserver] | |
49 | level = DEBUG |
|
116 | level = DEBUG | |
50 | handlers = |
|
117 | handlers = | |
51 | qualname = vcsserver |
|
118 | qualname = vcsserver | |
52 | propagate = 1 |
|
119 | propagate = 1 | |
53 |
|
120 | |||
54 | [logger_beaker] |
|
|||
55 | level = DEBUG |
|
|||
56 | handlers = |
|
|||
57 | qualname = beaker |
|
|||
58 | propagate = 1 |
|
|||
59 |
|
121 | |||
60 |
|
122 | ; ######## | ||
61 | ############## |
|
123 | ; HANDLERS | |
62 | ## HANDLERS ## |
|
124 | ; ######## | |
63 | ############## |
|
|||
64 |
|
125 | |||
65 | [handler_console] |
|
126 | [handler_console] | |
66 | class = StreamHandler |
|
127 | class = StreamHandler | |
67 | args = (sys.stderr,) |
|
128 | args = (sys.stderr, ) | |
68 | level = DEBUG |
|
129 | level = DEBUG | |
69 | formatter = generic |
|
130 | formatter = generic | |
70 |
|
131 | |||
71 |
|
|
132 | ; ########## | |
72 |
|
|
133 | ; FORMATTERS | |
73 |
|
|
134 | ; ########## | |
74 |
|
135 | |||
75 | [formatter_generic] |
|
136 | [formatter_generic] | |
76 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
137 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
77 | datefmt = %Y-%m-%d %H:%M:%S |
|
138 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now