Use caddy instead of socat for http proxying

This commit is contained in:
uumas
2026-03-15 22:30:36 +02:00
parent 77768e5483
commit 615c4013c1
8 changed files with 101 additions and 10 deletions

View File

@@ -51,16 +51,16 @@
container_wants: "{{ _service_container_wants }}"
container_auto_update: "{{ service_auto_update }}"
- name: Socat for http of {{ service_name }}
- name: Caddy socket proxy for http of {{ service_name }}
ansible.builtin.include_role:
name: socat
name: caddy_socket_proxy
when: service_container_http_port > 0
vars:
socat_service_name: "{{ service_name }}"
socat_target_http_port: "{{ service_container_http_port }}"
socat_container_ip: >-
caddy_socket_proxy_service_name: "{{ service_name }}"
caddy_socket_proxy_target_http_port: "{{ service_container_http_port }}"
caddy_socket_proxy_container_ip: >-
{{ service_container_ip | ansible.utils.ipmath(257) if _service_static_ip else '' }}
socat_auto_update: "{{ service_auto_update }}"
caddy_socket_proxy_auto_update: "{{ service_auto_update }}"
- name: Socat for socket published ports of {{ service_name }}
ansible.builtin.include_role: