{% extends "base.html" %} {% block content %} {% from 'include/input_macros.html' import input, checkbox, select %} {% set balance_params = dict() %} {% set balance_params = {'ip_hash':'ip_hash','least_conn':'least_conn','random':'random'} %}
{% include 'include/add_nginx_proxy.html' %}

Add upstream

Select a server:
Note: If you re-configure the master server, the slave server will be re-configured automatically
The upstream module is used to define groups of servers.

Defines a group of servers. Servers can listen on different ports. In addition, servers listening on TCP and UNIX-domain sockets can be mixed..

By default, requests are distributed between the servers using a weighted round-robin balancing method.
Name: {{ input('name', name='upstream', title="Name upstream", placeholder="backend_servers", required='required') }}
Balance: {{ select('balance', values=balance_params, selected='least_conn', required='required', class='force_close') }}
Keepalive: {{ input('name', name='keepalive', title="Activates the cache for connections to upstream servers.", placeholder="32") }}
Servers: {% include 'include/add_nginx_servers.html' %}
Add Upstream Generate config
{% endblock %}