mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
30 lines
461 B
Caddyfile
30 lines
461 B
Caddyfile
{
|
|
{{ if .Debug }}debug{{ end }}
|
|
}
|
|
|
|
:8080 {
|
|
{{- if .EnableOpenTelemetry }}
|
|
tracing {
|
|
span gateway
|
|
}
|
|
{{- end }}
|
|
log {
|
|
output stdout
|
|
{{- if .Debug }}
|
|
level DEBUG
|
|
{{- end }}
|
|
}
|
|
|
|
handle {
|
|
method GET
|
|
reverse_proxy ledger-read:8080{
|
|
header_up Host {upstream_hostport}
|
|
}
|
|
}
|
|
|
|
handle {
|
|
reverse_proxy ledger-write:8080{
|
|
header_up Host {upstream_hostport}
|
|
}
|
|
}
|
|
} |