-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile
48 lines (39 loc) · 813 Bytes
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
{
log {
level DEBUG
}
}
:{$LISTEN_PORT}
handle /__ready {
respond OK 200
}
lura {
timeout 10s
cache_ttl 3600s
debug_endpoint
echo_endpoint /__custom/echo
endpoint /users/{user} {
method GET
concurrent_calls 2
timeout 1000s
cache_ttl 3600s
backend {$BACKEND_HOST} {
url_pattern /registered/{user}
allow id name email
mapping {
email>personal_email
}
}
backend {$BACKEND_HOST} {
url_pattern /users/{user}/permissions
group permissions
}
}
endpoint /dynamic {
method GET
backend {$BACKEND_HOST} {
method GET
url_pattern /tenants/{header.X-Tenant-Id}
}
}
}