Show More
@@ -1,191 +1,191 b'' | |||||
1 | # |
|
|||
2 |
|
1 | |||
3 | ; ################################# |
|
2 | ; ################################# | |
4 | ; RHODECODE VCSSERVER CONFIGURATION |
|
3 | ; RHODECODE VCSSERVER CONFIGURATION | |
5 | ; ################################# |
|
4 | ; ################################# | |
6 |
|
5 | |||
7 | [server:main] |
|
6 | [server:main] | |
8 | ; COMMON HOST/IP CONFIG |
|
7 | ; COMMON HOST/IP CONFIG, This applies mostly to develop setup, | |
|
8 | ; Host port for gunicorn are controlled by gunicorn_conf.py | |||
9 | host = 0.0.0.0 |
|
9 | host = 0.0.0.0 | |
10 | port = 10010 |
|
10 | port = 10010 | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | ; ########################### |
|
13 | ; ########################### | |
14 | ; GUNICORN APPLICATION SERVER |
|
14 | ; GUNICORN APPLICATION SERVER | |
15 | ; ########################### |
|
15 | ; ########################### | |
16 |
|
16 | |||
17 |
; run with gunicorn --paste |
|
17 | ; run with gunicorn --config gunicorn_conf.py --paste vcsserver.ini | |
18 |
|
18 | |||
19 | ; Module to use, this setting shouldn't be changed |
|
19 | ; Module to use, this setting shouldn't be changed | |
20 | use = egg:gunicorn#main |
|
20 | use = egg:gunicorn#main | |
21 |
|
21 | |||
22 | [app:main] |
|
22 | [app:main] | |
23 | ; The %(here)s variable will be replaced with the absolute path of parent directory |
|
23 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |
24 | ; of this file |
|
24 | ; of this file | |
25 | ; Each option in the app:main can be override by an environmental variable |
|
25 | ; Each option in the app:main can be override by an environmental variable | |
26 | ; |
|
26 | ; | |
27 | ;To override an option: |
|
27 | ;To override an option: | |
28 | ; |
|
28 | ; | |
29 | ;RC_<KeyName> |
|
29 | ;RC_<KeyName> | |
30 | ;Everything should be uppercase, . and - should be replaced by _. |
|
30 | ;Everything should be uppercase, . and - should be replaced by _. | |
31 | ;For example, if you have these configuration settings: |
|
31 | ;For example, if you have these configuration settings: | |
32 | ;rc_cache.repo_object.backend = foo |
|
32 | ;rc_cache.repo_object.backend = foo | |
33 | ;can be overridden by |
|
33 | ;can be overridden by | |
34 | ;export RC_CACHE_REPO_OBJECT_BACKEND=foo |
|
34 | ;export RC_CACHE_REPO_OBJECT_BACKEND=foo | |
35 |
|
35 | |||
36 | use = egg:rhodecode-vcsserver |
|
36 | use = egg:rhodecode-vcsserver | |
37 |
|
37 | |||
38 |
|
38 | |||
39 | ; ############# |
|
39 | ; ############# | |
40 | ; DEBUG OPTIONS |
|
40 | ; DEBUG OPTIONS | |
41 | ; ############# |
|
41 | ; ############# | |
42 |
|
42 | |||
43 | # During development the we want to have the debug toolbar enabled |
|
43 | # During development the we want to have the debug toolbar enabled | |
44 | pyramid.includes = |
|
44 | pyramid.includes = | |
45 | pyramid_debugtoolbar |
|
45 | pyramid_debugtoolbar | |
46 |
|
46 | |||
47 | debugtoolbar.hosts = 0.0.0.0/0 |
|
47 | debugtoolbar.hosts = 0.0.0.0/0 | |
48 | debugtoolbar.exclude_prefixes = |
|
48 | debugtoolbar.exclude_prefixes = | |
49 | /css |
|
49 | /css | |
50 | /fonts |
|
50 | /fonts | |
51 | /images |
|
51 | /images | |
52 | /js |
|
52 | /js | |
53 |
|
53 | |||
54 | ; ################# |
|
54 | ; ################# | |
55 | ; END DEBUG OPTIONS |
|
55 | ; END DEBUG OPTIONS | |
56 | ; ################# |
|
56 | ; ################# | |
57 |
|
57 | |||
58 | ; Pyramid default locales, we need this to be set |
|
58 | ; Pyramid default locales, we need this to be set | |
59 | #pyramid.default_locale_name = en |
|
59 | #pyramid.default_locale_name = en | |
60 |
|
60 | |||
61 | ; default locale used by VCS systems |
|
61 | ; default locale used by VCS systems | |
62 | #locale = en_US.UTF-8 |
|
62 | #locale = en_US.UTF-8 | |
63 |
|
63 | |||
64 | ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer |
|
64 | ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer | |
65 | ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin |
|
65 | ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin | |
66 | ; or /usr/local/bin/rhodecode_bin/vcs_bin |
|
66 | ; or /usr/local/bin/rhodecode_bin/vcs_bin | |
67 | core.binary_dir = |
|
67 | core.binary_dir = | |
68 |
|
68 | |||
69 | ; Redis connection settings for svn integrations logic |
|
69 | ; Redis connection settings for svn integrations logic | |
70 | ; This connection string needs to be the same on ce and vcsserver |
|
70 | ; This connection string needs to be the same on ce and vcsserver | |
71 | vcs.svn.redis_conn = redis://redis:6379/0 |
|
71 | vcs.svn.redis_conn = redis://redis:6379/0 | |
72 |
|
72 | |||
73 | ; Custom exception store path, defaults to TMPDIR |
|
73 | ; Custom exception store path, defaults to TMPDIR | |
74 | ; This is used to store exception from RhodeCode in shared directory |
|
74 | ; This is used to store exception from RhodeCode in shared directory | |
75 | #exception_tracker.store_path = |
|
75 | #exception_tracker.store_path = | |
76 |
|
76 | |||
77 | ; ############# |
|
77 | ; ############# | |
78 | ; DOGPILE CACHE |
|
78 | ; DOGPILE CACHE | |
79 | ; ############# |
|
79 | ; ############# | |
80 |
|
80 | |||
81 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. |
|
81 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. | |
82 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space |
|
82 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | |
83 | #cache_dir = %(here)s/data |
|
83 | #cache_dir = %(here)s/data | |
84 |
|
84 | |||
85 | ; *************************************** |
|
85 | ; *************************************** | |
86 | ; `repo_object` cache, default file based |
|
86 | ; `repo_object` cache, default file based | |
87 | ; *************************************** |
|
87 | ; *************************************** | |
88 |
|
88 | |||
89 | ; `repo_object` cache settings for vcs methods for repositories |
|
89 | ; `repo_object` cache settings for vcs methods for repositories | |
90 | #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace |
|
90 | #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |
91 |
|
91 | |||
92 | ; cache auto-expires after N seconds |
|
92 | ; cache auto-expires after N seconds | |
93 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) |
|
93 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |
94 | #rc_cache.repo_object.expiration_time = 2592000 |
|
94 | #rc_cache.repo_object.expiration_time = 2592000 | |
95 |
|
95 | |||
96 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set |
|
96 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |
97 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db |
|
97 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db | |
98 |
|
98 | |||
99 | ; *********************************************************** |
|
99 | ; *********************************************************** | |
100 | ; `repo_object` cache with redis backend |
|
100 | ; `repo_object` cache with redis backend | |
101 | ; recommended for larger instance, and for better performance |
|
101 | ; recommended for larger instance, and for better performance | |
102 | ; *********************************************************** |
|
102 | ; *********************************************************** | |
103 |
|
103 | |||
104 | ; `repo_object` cache settings for vcs methods for repositories |
|
104 | ; `repo_object` cache settings for vcs methods for repositories | |
105 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack |
|
105 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack | |
106 |
|
106 | |||
107 | ; cache auto-expires after N seconds |
|
107 | ; cache auto-expires after N seconds | |
108 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) |
|
108 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |
109 | #rc_cache.repo_object.expiration_time = 2592000 |
|
109 | #rc_cache.repo_object.expiration_time = 2592000 | |
110 |
|
110 | |||
111 | ; redis_expiration_time needs to be greater then expiration_time |
|
111 | ; redis_expiration_time needs to be greater then expiration_time | |
112 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 |
|
112 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 | |
113 |
|
113 | |||
114 | #rc_cache.repo_object.arguments.host = localhost |
|
114 | #rc_cache.repo_object.arguments.host = localhost | |
115 | #rc_cache.repo_object.arguments.port = 6379 |
|
115 | #rc_cache.repo_object.arguments.port = 6379 | |
116 | #rc_cache.repo_object.arguments.db = 5 |
|
116 | #rc_cache.repo_object.arguments.db = 5 | |
117 | #rc_cache.repo_object.arguments.socket_timeout = 30 |
|
117 | #rc_cache.repo_object.arguments.socket_timeout = 30 | |
118 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends |
|
118 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |
119 | #rc_cache.repo_object.arguments.distributed_lock = true |
|
119 | #rc_cache.repo_object.arguments.distributed_lock = true | |
120 |
|
120 | |||
121 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen |
|
121 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen | |
122 | #rc_cache.repo_object.arguments.lock_auto_renewal = true |
|
122 | #rc_cache.repo_object.arguments.lock_auto_renewal = true | |
123 |
|
123 | |||
124 | ; Statsd client config, this is used to send metrics to statsd |
|
124 | ; Statsd client config, this is used to send metrics to statsd | |
125 | ; We recommend setting statsd_exported and scrape them using Promethues |
|
125 | ; We recommend setting statsd_exported and scrape them using Promethues | |
126 | #statsd.enabled = false |
|
126 | #statsd.enabled = false | |
127 | #statsd.statsd_host = 0.0.0.0 |
|
127 | #statsd.statsd_host = 0.0.0.0 | |
128 | #statsd.statsd_port = 8125 |
|
128 | #statsd.statsd_port = 8125 | |
129 | #statsd.statsd_prefix = |
|
129 | #statsd.statsd_prefix = | |
130 | #statsd.statsd_ipv6 = false |
|
130 | #statsd.statsd_ipv6 = false | |
131 |
|
131 | |||
132 | ; configure logging automatically at server startup set to false |
|
132 | ; configure logging automatically at server startup set to false | |
133 | ; to use the below custom logging config. |
|
133 | ; to use the below custom logging config. | |
134 | ; RC_LOGGING_FORMATTER |
|
134 | ; RC_LOGGING_FORMATTER | |
135 | ; RC_LOGGING_LEVEL |
|
135 | ; RC_LOGGING_LEVEL | |
136 | ; env variables can control the settings for logging in case of autoconfigure |
|
136 | ; env variables can control the settings for logging in case of autoconfigure | |
137 |
|
137 | |||
138 | #logging.autoconfigure = true |
|
138 | #logging.autoconfigure = true | |
139 |
|
139 | |||
140 | ; specify your own custom logging config file to configure logging |
|
140 | ; specify your own custom logging config file to configure logging | |
141 | #logging.logging_conf_file = /path/to/custom_logging.ini |
|
141 | #logging.logging_conf_file = /path/to/custom_logging.ini | |
142 |
|
142 | |||
143 | ; ##################### |
|
143 | ; ##################### | |
144 | ; LOGGING CONFIGURATION |
|
144 | ; LOGGING CONFIGURATION | |
145 | ; ##################### |
|
145 | ; ##################### | |
146 |
|
146 | |||
147 | [loggers] |
|
147 | [loggers] | |
148 | keys = root, vcsserver |
|
148 | keys = root, vcsserver | |
149 |
|
149 | |||
150 | [handlers] |
|
150 | [handlers] | |
151 | keys = console |
|
151 | keys = console | |
152 |
|
152 | |||
153 | [formatters] |
|
153 | [formatters] | |
154 | keys = generic, json |
|
154 | keys = generic, json | |
155 |
|
155 | |||
156 | ; ####### |
|
156 | ; ####### | |
157 | ; LOGGERS |
|
157 | ; LOGGERS | |
158 | ; ####### |
|
158 | ; ####### | |
159 | [logger_root] |
|
159 | [logger_root] | |
160 | level = NOTSET |
|
160 | level = NOTSET | |
161 | handlers = console |
|
161 | handlers = console | |
162 |
|
162 | |||
163 | [logger_vcsserver] |
|
163 | [logger_vcsserver] | |
164 | level = DEBUG |
|
164 | level = DEBUG | |
165 | handlers = |
|
165 | handlers = | |
166 | qualname = vcsserver |
|
166 | qualname = vcsserver | |
167 | propagate = 1 |
|
167 | propagate = 1 | |
168 |
|
168 | |||
169 | ; ######## |
|
169 | ; ######## | |
170 | ; HANDLERS |
|
170 | ; HANDLERS | |
171 | ; ######## |
|
171 | ; ######## | |
172 |
|
172 | |||
173 | [handler_console] |
|
173 | [handler_console] | |
174 | class = StreamHandler |
|
174 | class = StreamHandler | |
175 | args = (sys.stderr, ) |
|
175 | args = (sys.stderr, ) | |
176 | level = DEBUG |
|
176 | level = DEBUG | |
177 | ; To enable JSON formatted logs replace 'generic' with 'json' |
|
177 | ; To enable JSON formatted logs replace 'generic' with 'json' | |
178 | ; This allows sending properly formatted logs to grafana loki or elasticsearch |
|
178 | ; This allows sending properly formatted logs to grafana loki or elasticsearch | |
179 | formatter = generic |
|
179 | formatter = generic | |
180 |
|
180 | |||
181 | ; ########## |
|
181 | ; ########## | |
182 | ; FORMATTERS |
|
182 | ; FORMATTERS | |
183 | ; ########## |
|
183 | ; ########## | |
184 |
|
184 | |||
185 | [formatter_generic] |
|
185 | [formatter_generic] | |
186 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
186 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
187 | datefmt = %Y-%m-%d %H:%M:%S |
|
187 | datefmt = %Y-%m-%d %H:%M:%S | |
188 |
|
188 | |||
189 | [formatter_json] |
|
189 | [formatter_json] | |
190 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s |
|
190 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s | |
191 | class = vcsserver.lib._vendor.jsonlogger.JsonFormatter |
|
191 | class = vcsserver.lib._vendor.jsonlogger.JsonFormatter |
@@ -1,171 +1,171 b'' | |||||
1 | # |
|
|||
2 |
|
1 | |||
3 | ; ################################# |
|
2 | ; ################################# | |
4 | ; RHODECODE VCSSERVER CONFIGURATION |
|
3 | ; RHODECODE VCSSERVER CONFIGURATION | |
5 | ; ################################# |
|
4 | ; ################################# | |
6 |
|
5 | |||
7 | [server:main] |
|
6 | [server:main] | |
8 | ; COMMON HOST/IP CONFIG |
|
7 | ; COMMON HOST/IP CONFIG, This applies mostly to develop setup, | |
|
8 | ; Host port for gunicorn are controlled by gunicorn_conf.py | |||
9 | host = 0.0.0.0 |
|
9 | host = 0.0.0.0 | |
10 | port = 10010 |
|
10 | port = 10010 | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | ; ########################### |
|
13 | ; ########################### | |
14 | ; GUNICORN APPLICATION SERVER |
|
14 | ; GUNICORN APPLICATION SERVER | |
15 | ; ########################### |
|
15 | ; ########################### | |
16 |
|
16 | |||
17 |
; run with gunicorn --paste |
|
17 | ; run with gunicorn --config gunicorn_conf.py --paste vcsserver.ini | |
18 |
|
18 | |||
19 | ; Module to use, this setting shouldn't be changed |
|
19 | ; Module to use, this setting shouldn't be changed | |
20 | use = egg:gunicorn#main |
|
20 | use = egg:gunicorn#main | |
21 |
|
21 | |||
22 | [app:main] |
|
22 | [app:main] | |
23 | ; The %(here)s variable will be replaced with the absolute path of parent directory |
|
23 | ; The %(here)s variable will be replaced with the absolute path of parent directory | |
24 | ; of this file |
|
24 | ; of this file | |
25 | ; Each option in the app:main can be override by an environmental variable |
|
25 | ; Each option in the app:main can be override by an environmental variable | |
26 | ; |
|
26 | ; | |
27 | ;To override an option: |
|
27 | ;To override an option: | |
28 | ; |
|
28 | ; | |
29 | ;RC_<KeyName> |
|
29 | ;RC_<KeyName> | |
30 | ;Everything should be uppercase, . and - should be replaced by _. |
|
30 | ;Everything should be uppercase, . and - should be replaced by _. | |
31 | ;For example, if you have these configuration settings: |
|
31 | ;For example, if you have these configuration settings: | |
32 | ;rc_cache.repo_object.backend = foo |
|
32 | ;rc_cache.repo_object.backend = foo | |
33 | ;can be overridden by |
|
33 | ;can be overridden by | |
34 | ;export RC_CACHE_REPO_OBJECT_BACKEND=foo |
|
34 | ;export RC_CACHE_REPO_OBJECT_BACKEND=foo | |
35 |
|
35 | |||
36 | use = egg:rhodecode-vcsserver |
|
36 | use = egg:rhodecode-vcsserver | |
37 |
|
37 | |||
38 | ; Pyramid default locales, we need this to be set |
|
38 | ; Pyramid default locales, we need this to be set | |
39 | #pyramid.default_locale_name = en |
|
39 | #pyramid.default_locale_name = en | |
40 |
|
40 | |||
41 | ; default locale used by VCS systems |
|
41 | ; default locale used by VCS systems | |
42 | #locale = en_US.UTF-8 |
|
42 | #locale = en_US.UTF-8 | |
43 |
|
43 | |||
44 | ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer |
|
44 | ; path to binaries (hg,git,svn) for vcsserver, it should be set by the installer | |
45 | ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin |
|
45 | ; at installation time, e.g /home/user/.rccontrol/vcsserver-1/profile/bin | |
46 | ; or /usr/local/bin/rhodecode_bin/vcs_bin |
|
46 | ; or /usr/local/bin/rhodecode_bin/vcs_bin | |
47 | core.binary_dir = |
|
47 | core.binary_dir = | |
48 |
|
48 | |||
49 | ; Redis connection settings for svn integrations logic |
|
49 | ; Redis connection settings for svn integrations logic | |
50 | ; This connection string needs to be the same on ce and vcsserver |
|
50 | ; This connection string needs to be the same on ce and vcsserver | |
51 | vcs.svn.redis_conn = redis://redis:6379/0 |
|
51 | vcs.svn.redis_conn = redis://redis:6379/0 | |
52 |
|
52 | |||
53 | ; Custom exception store path, defaults to TMPDIR |
|
53 | ; Custom exception store path, defaults to TMPDIR | |
54 | ; This is used to store exception from RhodeCode in shared directory |
|
54 | ; This is used to store exception from RhodeCode in shared directory | |
55 | #exception_tracker.store_path = |
|
55 | #exception_tracker.store_path = | |
56 |
|
56 | |||
57 | ; ############# |
|
57 | ; ############# | |
58 | ; DOGPILE CACHE |
|
58 | ; DOGPILE CACHE | |
59 | ; ############# |
|
59 | ; ############# | |
60 |
|
60 | |||
61 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. |
|
61 | ; Default cache dir for caches. Putting this into a ramdisk can boost performance. | |
62 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space |
|
62 | ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space | |
63 | #cache_dir = %(here)s/data |
|
63 | #cache_dir = %(here)s/data | |
64 |
|
64 | |||
65 | ; *************************************** |
|
65 | ; *************************************** | |
66 | ; `repo_object` cache, default file based |
|
66 | ; `repo_object` cache, default file based | |
67 | ; *************************************** |
|
67 | ; *************************************** | |
68 |
|
68 | |||
69 | ; `repo_object` cache settings for vcs methods for repositories |
|
69 | ; `repo_object` cache settings for vcs methods for repositories | |
70 | #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace |
|
70 | #rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |
71 |
|
71 | |||
72 | ; cache auto-expires after N seconds |
|
72 | ; cache auto-expires after N seconds | |
73 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) |
|
73 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |
74 | #rc_cache.repo_object.expiration_time = 2592000 |
|
74 | #rc_cache.repo_object.expiration_time = 2592000 | |
75 |
|
75 | |||
76 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set |
|
76 | ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set | |
77 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db |
|
77 | #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache_repo_object.db | |
78 |
|
78 | |||
79 | ; *********************************************************** |
|
79 | ; *********************************************************** | |
80 | ; `repo_object` cache with redis backend |
|
80 | ; `repo_object` cache with redis backend | |
81 | ; recommended for larger instance, and for better performance |
|
81 | ; recommended for larger instance, and for better performance | |
82 | ; *********************************************************** |
|
82 | ; *********************************************************** | |
83 |
|
83 | |||
84 | ; `repo_object` cache settings for vcs methods for repositories |
|
84 | ; `repo_object` cache settings for vcs methods for repositories | |
85 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack |
|
85 | #rc_cache.repo_object.backend = dogpile.cache.rc.redis_msgpack | |
86 |
|
86 | |||
87 | ; cache auto-expires after N seconds |
|
87 | ; cache auto-expires after N seconds | |
88 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) |
|
88 | ; Examples: 86400 (1Day), 604800 (7Days), 1209600 (14Days), 2592000 (30days), 7776000 (90Days) | |
89 | #rc_cache.repo_object.expiration_time = 2592000 |
|
89 | #rc_cache.repo_object.expiration_time = 2592000 | |
90 |
|
90 | |||
91 | ; redis_expiration_time needs to be greater then expiration_time |
|
91 | ; redis_expiration_time needs to be greater then expiration_time | |
92 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 |
|
92 | #rc_cache.repo_object.arguments.redis_expiration_time = 3592000 | |
93 |
|
93 | |||
94 | #rc_cache.repo_object.arguments.host = localhost |
|
94 | #rc_cache.repo_object.arguments.host = localhost | |
95 | #rc_cache.repo_object.arguments.port = 6379 |
|
95 | #rc_cache.repo_object.arguments.port = 6379 | |
96 | #rc_cache.repo_object.arguments.db = 5 |
|
96 | #rc_cache.repo_object.arguments.db = 5 | |
97 | #rc_cache.repo_object.arguments.socket_timeout = 30 |
|
97 | #rc_cache.repo_object.arguments.socket_timeout = 30 | |
98 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends |
|
98 | ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends | |
99 | #rc_cache.repo_object.arguments.distributed_lock = true |
|
99 | #rc_cache.repo_object.arguments.distributed_lock = true | |
100 |
|
100 | |||
101 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen |
|
101 | ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen | |
102 | #rc_cache.repo_object.arguments.lock_auto_renewal = true |
|
102 | #rc_cache.repo_object.arguments.lock_auto_renewal = true | |
103 |
|
103 | |||
104 | ; Statsd client config, this is used to send metrics to statsd |
|
104 | ; Statsd client config, this is used to send metrics to statsd | |
105 | ; We recommend setting statsd_exported and scrape them using Promethues |
|
105 | ; We recommend setting statsd_exported and scrape them using Promethues | |
106 | #statsd.enabled = false |
|
106 | #statsd.enabled = false | |
107 | #statsd.statsd_host = 0.0.0.0 |
|
107 | #statsd.statsd_host = 0.0.0.0 | |
108 | #statsd.statsd_port = 8125 |
|
108 | #statsd.statsd_port = 8125 | |
109 | #statsd.statsd_prefix = |
|
109 | #statsd.statsd_prefix = | |
110 | #statsd.statsd_ipv6 = false |
|
110 | #statsd.statsd_ipv6 = false | |
111 |
|
111 | |||
112 | ; configure logging automatically at server startup set to false |
|
112 | ; configure logging automatically at server startup set to false | |
113 | ; to use the below custom logging config. |
|
113 | ; to use the below custom logging config. | |
114 | ; RC_LOGGING_FORMATTER |
|
114 | ; RC_LOGGING_FORMATTER | |
115 | ; RC_LOGGING_LEVEL |
|
115 | ; RC_LOGGING_LEVEL | |
116 | ; env variables can control the settings for logging in case of autoconfigure |
|
116 | ; env variables can control the settings for logging in case of autoconfigure | |
117 |
|
117 | |||
118 | #logging.autoconfigure = true |
|
118 | #logging.autoconfigure = true | |
119 |
|
119 | |||
120 | ; specify your own custom logging config file to configure logging |
|
120 | ; specify your own custom logging config file to configure logging | |
121 | #logging.logging_conf_file = /path/to/custom_logging.ini |
|
121 | #logging.logging_conf_file = /path/to/custom_logging.ini | |
122 |
|
122 | |||
123 | ; ##################### |
|
123 | ; ##################### | |
124 | ; LOGGING CONFIGURATION |
|
124 | ; LOGGING CONFIGURATION | |
125 | ; ##################### |
|
125 | ; ##################### | |
126 |
|
126 | |||
127 | [loggers] |
|
127 | [loggers] | |
128 | keys = root, vcsserver |
|
128 | keys = root, vcsserver | |
129 |
|
129 | |||
130 | [handlers] |
|
130 | [handlers] | |
131 | keys = console |
|
131 | keys = console | |
132 |
|
132 | |||
133 | [formatters] |
|
133 | [formatters] | |
134 | keys = generic, json |
|
134 | keys = generic, json | |
135 |
|
135 | |||
136 | ; ####### |
|
136 | ; ####### | |
137 | ; LOGGERS |
|
137 | ; LOGGERS | |
138 | ; ####### |
|
138 | ; ####### | |
139 | [logger_root] |
|
139 | [logger_root] | |
140 | level = NOTSET |
|
140 | level = NOTSET | |
141 | handlers = console |
|
141 | handlers = console | |
142 |
|
142 | |||
143 | [logger_vcsserver] |
|
143 | [logger_vcsserver] | |
144 | level = INFO |
|
144 | level = INFO | |
145 | handlers = |
|
145 | handlers = | |
146 | qualname = vcsserver |
|
146 | qualname = vcsserver | |
147 | propagate = 1 |
|
147 | propagate = 1 | |
148 |
|
148 | |||
149 | ; ######## |
|
149 | ; ######## | |
150 | ; HANDLERS |
|
150 | ; HANDLERS | |
151 | ; ######## |
|
151 | ; ######## | |
152 |
|
152 | |||
153 | [handler_console] |
|
153 | [handler_console] | |
154 | class = StreamHandler |
|
154 | class = StreamHandler | |
155 | args = (sys.stderr, ) |
|
155 | args = (sys.stderr, ) | |
156 | level = INFO |
|
156 | level = INFO | |
157 | ; To enable JSON formatted logs replace 'generic' with 'json' |
|
157 | ; To enable JSON formatted logs replace 'generic' with 'json' | |
158 | ; This allows sending properly formatted logs to grafana loki or elasticsearch |
|
158 | ; This allows sending properly formatted logs to grafana loki or elasticsearch | |
159 | formatter = generic |
|
159 | formatter = generic | |
160 |
|
160 | |||
161 | ; ########## |
|
161 | ; ########## | |
162 | ; FORMATTERS |
|
162 | ; FORMATTERS | |
163 | ; ########## |
|
163 | ; ########## | |
164 |
|
164 | |||
165 | [formatter_generic] |
|
165 | [formatter_generic] | |
166 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s |
|
166 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
167 | datefmt = %Y-%m-%d %H:%M:%S |
|
167 | datefmt = %Y-%m-%d %H:%M:%S | |
168 |
|
168 | |||
169 | [formatter_json] |
|
169 | [formatter_json] | |
170 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s |
|
170 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s | |
171 | class = vcsserver.lib._vendor.jsonlogger.JsonFormatter |
|
171 | class = vcsserver.lib._vendor.jsonlogger.JsonFormatter |
General Comments 0
You need to be logged in to leave comments.
Login now