12 lines
266 B
Plaintext
12 lines
266 B
Plaintext
|
# <%- incoming_port %> - <%- protocols.join(',').toUpperCase() %>
|
||
|
<%
|
||
|
protocols.forEach(function (protocol) {
|
||
|
%>
|
||
|
server {
|
||
|
listen <%- incoming_port %> <%- protocol === 'tcp' ? '' : protocol %>;
|
||
|
proxy_pass <%- forward_server %>:<%- forward_port %>;
|
||
|
}
|
||
|
<%
|
||
|
});
|
||
|
%>
|