forked from samjmck/tobcalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
35 lines (35 loc) · 1.02 KB
/
Caddyfile
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
localhost:8081 {
reverse_proxy localhost:8080
route /ecb/* {
uri strip_prefix /ecb
reverse_proxy https://sdw-wsrest.ecb.europa.eu {
header_up Host {upstream_hostport}
}
}
route /justetf/* {
uri strip_prefix /justetf
reverse_proxy https://www.justetf.com {
header_up Host {upstream_hostport}
header_up -sec-fetch-dest
header_up -sec-fetch-mode
header_up -sec-fetch-site
header_up -sec-gpc
header_up -referer
header_up -cookie
header_up -:path
}
}
route /investing_com/* {
uri strip_prefix /investing_com
reverse_proxy https://www.investing.com {
header_up Host {upstream_hostport}
header_up -sec-fetch-dest
header_up -sec-fetch-mode
header_up -sec-fetch-site
header_up -sec-gpc
header_up -referer
header_up -cookie
header_up -:path
}
}
}