-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-config.json
More file actions
44 lines (44 loc) · 1.05 KB
/
example-config.json
File metadata and controls
44 lines (44 loc) · 1.05 KB
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
{
"listen_address": ":8080",
"target_host": "https://example.com",
"headers": {
"X-CDN-Auth": "test",
"User-Agent": "HLSProxy/1.0"
},
"rewrite_rules": [
{
"pattern": "^/local/(.*\\.m3u8)$",
"replacement": "/streams/$1"
},
{
"pattern": "^/local/(.*\\.ts)$",
"replacement": "/segments/$1"
}
],
"content_rewrites": [
{
"pattern": "https://cdn\\.example\\.com/([^\"\\s]+)",
"replacement": "http://localhost:8080/local/$1",
"content_types": ["application/vnd.apple.mpegurl", "application/x-mpegurl"],
"global": true
},
{
"pattern": "#EXT-X-MEDIA-SEQUENCE:(\\d+)",
"replacement": "#EXT-X-MEDIA-SEQUENCE:1",
"content_types": ["application/vnd.apple.mpegurl"],
"global": false
}
],
"log_requests": true,
"log_responses": true,
"timeout": 60,
"tls": {
"enabled": false,
"cert_file": "server.crt",
"key_file": "server.key",
"skip_verify": false,
"client_cert_file": "",
"client_key_file": "",
"root_ca_file": ""
}
}