Restructured Front Proxy variables

This commit is contained in:
2025-09-26 18:43:09 +02:00
parent 2968ac7f0a
commit fb04a4c7a0
3 changed files with 7 additions and 9 deletions

View File

@@ -1,8 +1,5 @@
# default vhost flavour
vhost_flavour: "basic" # valid: basic, ws_generic
# build the full template path from the flavour
vhost_template_src: "roles/sys-svc-proxy/templates/vhost/{{ vhost_flavour }}.conf.j2"
# Enable / Disable Proxy during development, for faster Debugging
SYS_STK_FRONT_PROXY_ENABLED: true

View File

@@ -13,14 +13,14 @@
vars:
handler_role_name: "svc-prx-openresty"
- name: "include role for {{ domain }} to receive certificates and do the modification routines"
- name: "include role for '{{ domain }}' to receive certificates and do the modification routines"
include_role:
name: sys-util-csp-cert
- name: "Copy nginx config to {{ configuration_destination }}"
- name: "Copy nginx config to '{{ FRONT_PROXY_DOMAIN_CONF_DST }}'"
template:
src: "{{ vhost_template_src }}"
dest: "{{ configuration_destination }}"
src: "{{ FRONT_PROXY_DOMAIN_CONF_SRC }}"
dest: "{{ FRONT_PROXY_DOMAIN_CONF_DST }}"
register: nginx_conf
notify: restart openresty

View File

@@ -1 +1,2 @@
configuration_destination: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
FRONT_PROXY_DOMAIN_CONF_DST: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
FRONT_PROXY_DOMAIN_CONF_SRC: "roles/sys-svc-proxy/templates/vhost/{{ vhost_flavour }}.conf.j2"