Bladeren bron

fix: add ACL_FILES_DIR configuration to support custom ACL file directory

Manuel 5 maanden geleden
bovenliggende
commit
54d80ebe03
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      config.py

+ 4 - 0
config.py

@@ -142,6 +142,10 @@ class Config:
 
     # Squid configuration path
     SQUID_CONFIG_PATH = safe_get_env("SQUID_CONFIG_PATH", "/etc/squid/squid.conf")
+    ACL_FILES_DIR = safe_get_env(
+        "ACL_FILES_DIR",
+        os.path.join(os.path.dirname(SQUID_CONFIG_PATH), "squid.d"),
+    )
 
     # Internationalization (i18n)
     BABEL_DEFAULT_LOCALE = safe_get_env("BABEL_DEFAULT_LOCALE", "es")