multiple domains working
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user