multiple domains working

This commit is contained in:
2024-05-22 12:31:41 -04:00
parent eb934c32e2
commit d732fffd67
7 changed files with 49 additions and 139 deletions

View File

@@ -16,18 +16,14 @@ stream {
"" 127.0.0.1:443;
# For each domain we need to stream to a remote server, forward to internal domain
{% for domain in stream_ssl %}
{{ domain.external.domain }} {{ domain.internal.domain }}:{{ domain.internal.port }};
# For each domain we need to stream to a remote server, forward to internal ip
{% for item in (stream | subelements('external.domains')) %}
{{ item.1 }} {{ item.0.internal.ip }}:{{ item.0.internal.port }};
{% endfor %}
# For each domain we want to terminate, forward to internal http server
{% for domain in reeseapps %}
{{ domain.external.domain }} 127.0.0.1:443;
{% endfor %}
{% for domain in reeseseal %}
{{ domain.external.domain }} 127.0.0.1:443;
{% for item in (http | subelements('external.domains')) %}
{{ item.1 }} 127.0.0.1:443;
{% endfor %}
default {{ nginx.defaults.domain }}:443;