ansible-caddy/roles/install/templates/etc/caddy/ws.j2
GregoryDosh 8d2bc9806f
All checks were successful
Version Bump Galaxy.yml / Version Bump Galaxy.yml (push) Successful in 4s
chore: restructure templates to include destination dir
2025-11-18 17:22:03 -06:00

26 lines
692 B
Django/Jinja

# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2025 Dosh LLC
(websocket) {
handle {args[0]} {
@websockets {
header_regexp Connection ".*[U|u]pgrade.*"
header Upgrade websocket
}
reverse_proxy @websockets {args[1]}
}
}
(websocket_tls) {
handle {args[0]} {
@websockets {
header_regexp Connection ".*[U|u]pgrade.*"
header Upgrade websocket
}
reverse_proxy @websockets {args[1]} {
transport http {
tls_insecure_skip_verify
}
header_up Host {http.reverse_proxy.upstream.hostport}
}
}
}