From a2e283f0698c70e3f304d8d3b8a2c8ea888f5e16 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 29 Nov 2025 01:11:38 -0500 Subject: [PATCH] nginx-proxy VIRTUAL_HOST server_name paramter work --- tasks/containers.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/containers.yml b/tasks/containers.yml index 2e4c3d6..7479257 100644 --- a/tasks/containers.yml +++ b/tasks/containers.yml @@ -20,8 +20,10 @@ volumes: - "/home/{{ user.name }}/nextcloud/data:/home/step" env: - VIRTUAL_PROTO: "fastcgi" - VIRTUAL_ROOT: "/var/www/html/" + VIRTUAL_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}" + LETSENCRYPT_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}" + VIRTUAL_PROTO: "fastcgi" + VIRTUAL_ROOT: "/var/www/html/" - name: NGINX Proxy Container State created containers.podman.podman_container: