Use caddy instead of socat for http proxying
This commit is contained in:
30
roles/caddy_socket_proxy/meta/argument_specs.yaml
Normal file
30
roles/caddy_socket_proxy/meta/argument_specs.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
argument_specs:
|
||||
main:
|
||||
description: >-
|
||||
Sets up a caddy container and a systemd socket unit, forwarding traffic from it to
|
||||
target container
|
||||
options:
|
||||
caddy_socket_proxy_service_name:
|
||||
description: Name of the caddy service, used for systemd unit and container naming
|
||||
type: str
|
||||
required: true
|
||||
caddy_socket_proxy_target_container:
|
||||
description: Name of the container to forward traffic to
|
||||
type: str
|
||||
required: false
|
||||
default: "{{ caddy_socket_proxy_service_name }}"
|
||||
caddy_socket_proxy_target_http_port:
|
||||
description: Port on the target container to forward traffic to
|
||||
type: int
|
||||
required: true
|
||||
caddy_socket_proxy_container_ip:
|
||||
description: IP address to assign to the caddy container.
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
caddy_socket_proxy_auto_update:
|
||||
description: Whether to automatically update the caddy container
|
||||
type: bool
|
||||
required: false
|
||||
default: true
|
||||
Reference in New Issue
Block a user