Show More
@@ -1,18 +1,89 b'' | |||
|
1 | ################################################################################ | |
|
2 | # RhodeCode VCSServer with HTTP Backend - configuration # | |
|
3 | # # | |
|
4 | ################################################################################ | |
|
1 | ## -*- coding: utf-8 -*- | |
|
2 | ||
|
3 | ; ################################# | |
|
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 | 22 | [app:main] |
|
23 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |
|
24 | ; of this file | |
|
7 | 25 | use = egg:rhodecode-vcsserver |
|
8 | 26 | |
|
27 | ; Pyramid default locales, we need this to be set | |
|
9 | 28 | pyramid.default_locale_name = en |
|
10 | pyramid.includes = | |
|
11 | 29 | |
|
12 |
|
|
|
30 | ; default locale used by VCS systems | |
|
13 | 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 | 87 | beaker.cache.regions = repo_object |
|
17 | 88 | beaker.cache.repo_object.type = memorylru |
|
18 | 89 | beaker.cache.repo_object.max_items = 100 |
@@ -20,17 +91,13 b' beaker.cache.repo_object.max_items = 100' | |||
|
20 | 91 | beaker.cache.repo_object.expire = 300 |
|
21 | 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 |
|
|
|
30 |
|
|
|
31 |
|
|
|
96 | ; ##################### | |
|
97 | ; LOGGING CONFIGURATION | |
|
98 | ; ##################### | |
|
32 | 99 | [loggers] |
|
33 |
keys = root, vcsserver |
|
|
100 | keys = root, vcsserver | |
|
34 | 101 | |
|
35 | 102 | [handlers] |
|
36 | 103 | keys = console |
@@ -38,9 +105,9 b' keys = console' | |||
|
38 | 105 | [formatters] |
|
39 | 106 | keys = generic |
|
40 | 107 | |
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
108 | ; ####### | |
|
109 | ; LOGGERS | |
|
110 | ; ####### | |
|
44 | 111 | [logger_root] |
|
45 | 112 | level = NOTSET |
|
46 | 113 | handlers = console |
@@ -51,16 +118,10 b' handlers =' | |||
|
51 | 118 | qualname = vcsserver |
|
52 | 119 | propagate = 1 |
|
53 | 120 | |
|
54 | [logger_beaker] | |
|
55 | level = DEBUG | |
|
56 | handlers = | |
|
57 | qualname = beaker | |
|
58 | propagate = 1 | |
|
59 | 121 | |
|
60 | ||
|
61 | ############## | |
|
62 | ## HANDLERS ## | |
|
63 | ############## | |
|
122 | ; ######## | |
|
123 | ; HANDLERS | |
|
124 | ; ######## | |
|
64 | 125 | |
|
65 | 126 | [handler_console] |
|
66 | 127 | class = StreamHandler |
@@ -68,10 +129,10 b' args = (sys.stderr,)' | |||
|
68 | 129 | level = DEBUG |
|
69 | 130 | formatter = generic |
|
70 | 131 | |
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
132 | ; ########## | |
|
133 | ; FORMATTERS | |
|
134 | ; ########## | |
|
74 | 135 | |
|
75 | 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 | 138 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now