forked from trickstercache/trickster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.full.tls.conf
150 lines (130 loc) · 4.36 KB
/
test.full.tls.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#
# Copyright 2018 Comcast Cable Communications Management, LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ### this file is for unit tests only and will not work in a live setting
[frontend]
listen_port = 57821
listen_address = 'test'
tls_listen_port = 38821
tls_listen_address = 'test-tls'
[tracing]
[tracing.test]
implementation = 'test'
[[exporter]]
type = 'stdout'
sample_rate = 1
[caches]
[caches.test]
cache_type = 'redis'
object_ttl_secs = 39
[caches.test.index]
reap_interval_secs = 4
flush_interval_secs = 6
max_size_bytes = 536870913
max_size_backoff_bytes = 16777217
max_size_objects = 80
max_size_backoff_objects = 20
### Configuration options when using a Redis Cache
[caches.test.redis]
client_type = 'test_redis_type'
protocol = 'test_protocol'
endpoint = 'test_endpoint'
endpoints = ['test_endpoint_1']
sentinel_master = 'test_master'
password = 'test_password'
db = 42
max_retries = 6
min_retry_backoff_ms = 9
max_retry_backoff_ms = 513
dial_timeout_ms = 5001
read_timeout_ms = 3001
write_timeout_ms = 3002
pool_size = 21
min_idle_conns = 5
max_conn_age_ms = 2000
pool_timeout_ms = 4001
idle_timeout_ms = 300001
idle_check_frequency_ms = 60001
[caches.test.filesystem]
cache_path = 'test_cache_path'
[caches.test.bbolt]
filename = 'test_filename'
bucket = 'test_bucket'
# Configuration options when using a Badger cache
[caches.test.badger]
directory = 'test_directory'
value_directory = 'test_value_directory'
[origins]
[origins.test]
tracing_name = 'test'
is_default = true
hosts = [ '1.example.com' ]
revalidation_factor = 2.0
multipart_ranges_disabled = true
dearticulate_upstream_ranges = true
compressable_types = [ 'image/png' ]
origin_type = 'test_type'
cache_name = 'test'
origin_url = 'scheme://test_host/test_path_prefix'
api_path = 'test_api_path'
max_idle_conns = 23
keep_alive_timeout_secs = 7
ignore_caching_headers = true
timeseries_retention_factor = 666
timeseries_eviction_method = 'lru'
fast_forward_disable = true
backfill_tolerance_secs = 301
timeout_secs = 37
health_check_endpoint = '/test_health'
health_check_upstream_path = '/test/upstream/endpoint'
health_check_verb = 'test_verb'
health_check_query = 'query=1234'
timeseries_ttl_secs = 8666
max_ttl_secs = 300
fastforward_ttl_secs = 382
require_tls = true
max_object_size_bytes = 999
cache_key_prefix = 'test-prefix'
[origins.test.health_check_headers]
'Authorization' = 'Basic SomeHash'
[origins.test.negative_cache]
404 = 10
500 = 10
[origins.test.paths]
[origins.test.paths.series]
path = "/series"
handler = "proxy"
[origins.test.paths.label]
path = "/label"
handler = "localresponse"
match_type = "prefix"
response_code = 200
response_body = "test"
collapsed_forwarding = "basic"
[origins.test.paths.label.response_headers]
'X-Header-Test' = 'test-value'
[origins.test.tls]
full_chain_cert_path = '../../../testdata/test.01.cert.pem'
private_key_path = '../../../testdata/test.01.key.pem'
insecure_skip_verify = true
certificate_authority_paths = [ '../../../testdata/test.rootca.pem' ]
client_key_path = 'test_client_key'
client_cert_path = 'test_client_cert'
[negative_caches]
[negative_caches.default]
404 = 5
[metrics]
listen_port = 57822
listen_address = 'metrics_test'
[logging]
log_level = 'test_log_level'
log_file = 'test_file'