service: Add support for native sockets for http
This commit is contained in:
@@ -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
|
||||
|
||||
7
roles/service/tasks/native_socket.yaml
Normal file
7
roles/service/tasks/native_socket.yaml
Normal 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 }}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user