From 64313ef97a35181cce0ac884efc104ded2ebeb25 Mon Sep 17 00:00:00 2001 From: kaneru Date: Thu, 17 Jul 2025 01:32:28 -0400 Subject: [PATCH] Add Tinyauth as a valid auth check in swag-proxies.py --- root/dashboard/swag-proxies.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/dashboard/swag-proxies.py b/root/dashboard/swag-proxies.py index 1b2abc8..a0c916f 100644 --- a/root/dashboard/swag-proxies.py +++ b/root/dashboard/swag-proxies.py @@ -13,6 +13,7 @@ AUTHELIA_REGEX = r"\n\s+include \/config\/nginx\/authelia-location\.conf;.*" AUTHENTIK_REGEX = r"\n\s+include \/config\/nginx\/authentik-location\.conf;.*" BASIC_AUTH_REGEX = r"\n\s+auth_basic.*" LDAP_REGEX = r"\n\s+include \/config\/nginx\/ldap-location\.conf;.*" +TINYAUTH_REGEX = r"\n\s+include \/config\/nginx\/tinyauth-location\.conf;.*" def find_apps(fast=False): @@ -50,6 +51,8 @@ def match_auth(auths, app, file_path, content): auths[app][file_path] = "Basic Auth" elif re.findall(LDAP_REGEX, content): auths[app][file_path] = "LDAP" + elif re.findall(TINYAUTH_REGEX, content): + auths[app][file_path] = "Tinyauth" else: auths[app][file_path] = "No Auth"