{
  email dead@cxap.space
  dns cloudflare {$CF_API_TOKEN}
  order authorize before reverse_proxy
  servers {
    trusted_proxies static private_ranges
  }
}

# Портал аутентификации
auth.realy.nothing.help {
  route {
    authp {
      backends {
        local_backend {
          method local
          path /data/users.json
        }
      }
      ui {
        links {
          "Portainer" "https://port.realy.nothing.help"
        }
      }
    }
  }
}

# Сниппет для защиты сервисов
(auth_portal_forwarder) {
  authorize {
    set auth url https://auth.realy.nothing.help
  }
}
