-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproxy_config.toml
44 lines (35 loc) · 1 KB
/
proxy_config.toml
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
# -- Proxy config --
# See documentation for struct `ProxyConfig`.
reload_config_url_path = "/reload-proxy-config"
clear_cache_url_path = "/clear-cache"
status_url_path = "/status"
db_directory = "proxy_db"
ip = "0.0.0.0"
default_port = 5000
cache_enabled = true
default_cache_validity = 600 # 10 * 60
cache_stale_threshold_on_fail = 172_800 # 48 * 60 * 60
timeout = 20
verbose = false
[[routes]]
from = "127.0.0.1:5000/origin"
to = "http://localhost:5005"
# validate = false
[[routes]]
from = "stremio-addon-helloworld.dev"
to = "http://127.0.0.1:1337"
[[routes]]
from = "stremio-addon-example.dev"
to = "http://127.0.0.1:1337"
[[routes]]
from = "127.0.0.1:5000/helloworld"
to = "http://127.0.0.1:1337"
[[routes]]
from = "127.0.0.1:5000/rust-addon"
to = "http://127.0.0.1:1337"
[[routes]]
from = "stremio-addon-proxy.herokuapp.com/helloworld"
to = "https://stremio-addon-helloworld.herokuapp.com"
[[routes]]
from = "stremio-addon-proxy.herokuapp.com/rust-addon"
to = "https://stremio-addon-example.herokuapp.com"