because I got bored of customising my CV for every job
1{$DOMAIN:localhost} {
2 @protected {
3 not path /health
4 }
5
6 basic_auth @protected {
7 {$BASIC_AUTH_USER:admin} {$BASIC_AUTH_HASH}
8 }
9
10 handle /graphql {
11 reverse_proxy server:3000
12 }
13
14 handle /health {
15 reverse_proxy server:3000
16 }
17
18 handle /api/* {
19 reverse_proxy server:3000
20 }
21
22 handle {
23 reverse_proxy client:80
24 }
25}
26
27docs.{$DOMAIN:localhost} {
28 basic_auth {
29 {$BASIC_AUTH_USER:admin} {$BASIC_AUTH_HASH}
30 }
31
32 reverse_proxy docs:80
33}