service: Use native socket for oauth2 proxy

This commit is contained in:
uumas
2026-03-12 01:55:09 +02:00
parent 956f8ed6ce
commit 489b8eaade
2 changed files with 5 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
value: "{{ service_oauth2_proxy_client_secret }}"
target: client-secret
container_env:
OAUTH2_PROXY_HTTP_ADDRESS: 0.0.0.0:4180
OAUTH2_PROXY_HTTP_ADDRESS: fd:3
OAUTH2_PROXY_PROVIDER: oidc
OAUTH2_PROXY_OIDC_ISSUER_URL: "{{ service_oauth2_proxy_issuer_url }}"
OAUTH2_PROXY_CLIENT_ID: "{{ service_oauth2_proxy_client_id }}"
@@ -29,11 +29,8 @@
OAUTH2_PROXY_EMAIL_DOMAINS: "*"
container_auto_update: "{{ service_auto_update }}"
- name: Socat for OAuth2 Proxy for {{ service_name }}
- name: Socket for OAuth2 Proxy for {{ service_name }}
ansible.builtin.import_role:
name: socat
name: uumas.general.systemd_socket
vars:
socat_service_name: "{{ service_name }}-oauth2-proxy"
socat_target_http_port: 4180
socat_container_ip: ""
socat_auto_update: "{{ service_auto_update }}"
systemd_socket_name: "{{ service_name }}-oauth2-proxy"