--- backend: "{{ (backend_port is defined) | ternary(backend_port, backend_socket) }}" backend_full: "{{ (backend_type == 'port') | ternary('localhost', 'unix') }}:{{ backend }}" backend_type: "{{ (backend_port is defined) | ternary('port', 'socket') }}" upstream_name: "{{ (backend_type == 'port') | ternary('localhost' + backend, backend | basename) }}" keep_alive: 32