external and internal http/https ports working
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
{%- set unique_ports = [] %}
|
||||
|
||||
{%- for item in http %}
|
||||
{%- for port in item.external.extra_ports %}
|
||||
|
||||
{#- Gather http ports #}
|
||||
{%- for port in item.external.extra_http_ports %}
|
||||
{%- if port not in unique_ports %}
|
||||
{{- unique_ports.append(port) }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
{#- Gather https ports #}
|
||||
{%- for port in item.external.extra_https_ports %}
|
||||
{%- if port not in unique_ports %}
|
||||
{{- unique_ports.append(port) }}
|
||||
{%- endif %}
|
||||
@@ -11,9 +20,11 @@
|
||||
|
||||
load_module /usr/lib64/nginx/modules/ngx_stream_module.so;
|
||||
|
||||
worker_processes 8;
|
||||
worker_processes auto;
|
||||
|
||||
events {}
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
stream {
|
||||
log_format basic '| Remote Addr: $remote_addr:$server_port | SSL Preread: $ssl_preread_server_name | Forward: $map_forward_ip:$upstream_port | Upstream Addr: $upstream_addr | $time_local | $protocol | $status | $bytes_sent | $bytes_received | $session_time |';
|
||||
|
||||
Reference in New Issue
Block a user