service: Add support for native sockets for http

This commit is contained in:
uumas
2026-02-13 02:00:28 +02:00
parent 4079b69338
commit 58ff2f6217
9 changed files with 47 additions and 6 deletions

View File

@@ -22,6 +22,10 @@
ansible.builtin.include_tasks: additional.yaml
when: _service_additional_containers | length > 0
- name: Native socket for {{ service_name }}
ansible.builtin.include_tasks: native_socket.yaml
when: _service_native_socket
- name: Main container for {{ service_name }}
ansible.builtin.import_role:
name: container

View File

@@ -0,0 +1,7 @@
---
- name: Socket for {{ service_name }}
ansible.builtin.template:
src: service.socket.j2
dest: /etc/systemd/system/{{ service_name }}.socket
mode: "0644"
notify: Restart socket for {{ service_name }}

View File

@@ -11,7 +11,7 @@
vhost_id: "{{ service_name }}"
vhost_domains: "{{ service_domains }}"
vhost_proxy_target_netproto: unix
vhost_proxy_target_socket: "/run/{{ service_name }}-socat.sock"
vhost_proxy_target_socket: "{{ _service_socket_path }}"
vhost_proxy_headers: "{{ _service_proxy_headers }}"
vhost_proxy_auth_socket: "{{ _service_oauth2_socket }}"
vhost_proxy_auth_uri: /oauth2/auth