-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCaddyfile
More file actions
41 lines (36 loc) · 983 Bytes
/
Caddyfile
File metadata and controls
41 lines (36 loc) · 983 Bytes
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
{
# Global options
admin off
persist_config off
}
# The site address (change this via environment variable if needed)
{$SITE_ADDRESS:localhost} {
# Reverse proxy to the SPECTRA web service
reverse_proxy spectra:5000 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
# Reverse proxy to MEMSHADOW sidecar
handle_path /memshadow* {
reverse_proxy memshadow:18080 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
}
# Logging
log {
output file /var/log/caddy/access.log
format json
}
# Compression
encode zstd gzip
# Custom Error Pages (optional)
handle_errors {
rewrite * /{err.status_code}.html
file_server
}
}