service: Add docker_vhost_additional_locations

This commit is contained in:
uumas
2024-10-17 17:11:03 +03:00
parent d6c316f7f2
commit abcaf22958
10 changed files with 24 additions and 9 deletions

View File

@@ -168,6 +168,9 @@ argument_specs:
docker_vhost_domains:
description: "docker_vhost_domains[docker_service] is a list which defines which domains should be proxied to the container. Required if reverse_proxy_type is not none. docker_vhost_domains[docker_service + '-phpmyadmin'] is used for phpmyadmin"
type: dict
docker_vhost_additional_locations:
description: "Passed to vhost role as vhost_locations variable"
required: false
docker_published_ports:
description: "A list of published ports in docker format (<host listen address>:<host port>:<container port>)"
type: list

View File

@@ -17,6 +17,7 @@
vhost_proxy_target_protocol: "{{ docker_proxy_target_protocol }}"
vhost_domains: "{{ docker_vhost_domains[docker_service_name] }}"
vhost_proxy_target_port: "{{ ports[docker_service_name][vhost_proxy_target_protocol] }}"
vhost_locations: "{{ docker_vhost_additional_locations }}"
when: reverse_proxy_type != 'traefik'
- name: Set published ports variable to http port