-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
61 lines (49 loc) · 1.5 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{$DOMAIN}
# Fetch the request-id or get a new one
request_id x-request-id
header / x-request-id {request_id}
# Make the logs docker friendly and inject the request-id
log / stdout "{request_id} - {common}"
errors stderr
# Configure letsencrypt
tls {$EMAIL}
# Enable CORS for everything for now
header / Access-Control-Allow-Origin *
header / Access-Control-Allow-Credentials true
header / Access-Control-Allow-Methods GET,POST,PUT,DELETE,OPTIONS
header / Access-Control-Allow-Headers location,x-request-id,x-requested-with,application-id
header / Access-Control-Expose-Headers location,x-request-id,x-requested-with,application-id
proxy /auth {$KEYCLOAK_ENDPOINT} {
transparent
header_upstream x-request-id {request_id}
}
proxy /xdc {$XDC_ENDPOINT} {
without /xdc
transparent
header_upstream x-request-id {request_id}
}
proxy /data-portability-requests http://data-portability:8080/ {
transparent
header_upstream x-request-id {request_id}
}
proxy /data-portability-responses http://data-portability:8080/ {
transparent
header_upstream x-request-id {request_id}
}
proxy /data-subjects http://data-portability:8080/ {
transparent
header_upstream x-request-id {request_id}
}
proxy /dynamic-consent http://dynamic-consent/ {
without /dynamic-consent
transparent
header_upstream x-request-id {request_id}
}
proxy /proxy http://linkedgeodata-proxy/ {
transparent
header_upstream x-request-id {request_id}
}
proxy / {$KONG_ENDPOINT} {
transparent
header_upstream x-request-id {request_id}
}