{% extends "base.html" %} {% block title %}Vhosts — nanio-orchestrator{% endblock %} {% block content %}

Virtual Hosts & Routes

{% for vhost in vhosts %}

{{ vhost.server_name }}

:{{ vhost.listen_port }} {% if vhost.ssl %}SSL{% endif %} {% if vhost.default_pool_type %}{{ vhost.default_pool_type }}{% endif %} {% if vhost.enabled %}enabled{% else %}disabled{% endif %}
{% if vhost.ssl_cert_path %}

Cert: {{ vhost.ssl_cert_path }}

{% endif %} {% if vhost.default_pool_id %}

Default pool: {{ vhost.default_pool_name or vhost.default_pool_id }} {% if vhost.default_pool_type %}{{ vhost.default_pool_type }}{% endif %}

{% endif %} {% if vhost.extra_blocks %}

Extra blocks: {% for b in vhost.extra_blocks %}{{ b.zone }} {% endfor %}

{% endif %} {% if vhost.ip_rule_mode %}

IP rules: {{ vhost.ip_rule_mode }}list ({{ vhost.ip_rule_ips | length }} entr{{ 'y' if (vhost.ip_rule_ips | length) == 1 else 'ies' }})

{% endif %}

Routes

{% for r in vhost.routes %} {% endfor %} {% if not vhost.routes %} {% endif %}
Path Prefix Pool Status Actions
{{ r.path_prefix }} {% if r.path_prefix == '/' %}auto{% endif %} {{ r.pool_name }} {% if r.enabled %}enabled{% else %}disabled{% endif %} {% if r.path_prefix != '/' %} {% endif %}
No routes configured
{% endfor %} {% if not vhosts %}

No virtual hosts configured. Create a vhost to define server blocks.

{% endif %} {% endblock %}