service: Use native socket for oauth2 proxy
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
value: "{{ service_oauth2_proxy_client_secret }}"
|
value: "{{ service_oauth2_proxy_client_secret }}"
|
||||||
target: client-secret
|
target: client-secret
|
||||||
container_env:
|
container_env:
|
||||||
OAUTH2_PROXY_HTTP_ADDRESS: 0.0.0.0:4180
|
OAUTH2_PROXY_HTTP_ADDRESS: fd:3
|
||||||
OAUTH2_PROXY_PROVIDER: oidc
|
OAUTH2_PROXY_PROVIDER: oidc
|
||||||
OAUTH2_PROXY_OIDC_ISSUER_URL: "{{ service_oauth2_proxy_issuer_url }}"
|
OAUTH2_PROXY_OIDC_ISSUER_URL: "{{ service_oauth2_proxy_issuer_url }}"
|
||||||
OAUTH2_PROXY_CLIENT_ID: "{{ service_oauth2_proxy_client_id }}"
|
OAUTH2_PROXY_CLIENT_ID: "{{ service_oauth2_proxy_client_id }}"
|
||||||
@@ -29,11 +29,8 @@
|
|||||||
OAUTH2_PROXY_EMAIL_DOMAINS: "*"
|
OAUTH2_PROXY_EMAIL_DOMAINS: "*"
|
||||||
container_auto_update: "{{ service_auto_update }}"
|
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:
|
ansible.builtin.import_role:
|
||||||
name: socat
|
name: uumas.general.systemd_socket
|
||||||
vars:
|
vars:
|
||||||
socat_service_name: "{{ service_name }}-oauth2-proxy"
|
systemd_socket_name: "{{ service_name }}-oauth2-proxy"
|
||||||
socat_target_http_port: 4180
|
|
||||||
socat_container_ip: ""
|
|
||||||
socat_auto_update: "{{ service_auto_update }}"
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ _service_proxy_headers: "{{ _service_replacement_host_header if not service_prox
|
|||||||
|
|
||||||
_service_oauth2_proxy: "{{ service_proxy_auth_type == 'oauth2-proxy' }}"
|
_service_oauth2_proxy: "{{ service_proxy_auth_type == 'oauth2-proxy' }}"
|
||||||
_service_oauth2_socket: >-
|
_service_oauth2_socket: >-
|
||||||
{{ '/run/' ~ service_name ~ '-oauth2-proxy-socat.sock' if _service_oauth2_proxy else '' }}
|
{{ '/run/' ~ service_name ~ '-oauth2-proxy.sock' if _service_oauth2_proxy else '' }}
|
||||||
_service_oauth2_proxy_location:
|
_service_oauth2_proxy_location:
|
||||||
path: /oauth2/*
|
path: /oauth2/*
|
||||||
proxy_target_socket: "{{ _service_oauth2_socket }}"
|
proxy_target_socket: "{{ _service_oauth2_socket }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user