10 lines
333 B
Caddyfile
10 lines
333 B
Caddyfile
:80 {
|
|
# Rewrites destination to remove host and include only the path e.g. /test.txt
|
|
@hasDest header_regexp dest Destination ^https?://[^/]+(.*)$
|
|
request_header @hasDest Destination {re.dest.1}
|
|
|
|
reverse_proxy booxdav:6065 {
|
|
header_up X-Real-IP {remote_host}
|
|
header_up REMOTE-HOST {remote_host}
|
|
}
|
|
} |