From 4ed76467af200e9466eccffe0f82adf2eafdd622 Mon Sep 17 00:00:00 2001 From: Matias Alvarez Sabate Date: Mon, 29 Dec 2025 15:33:13 -0300 Subject: [PATCH] Read pfSense API config from environment variables --- modules/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/config.py b/modules/config.py index 45bdbc7..33cdfc9 100644 --- a/modules/config.py +++ b/modules/config.py @@ -1,3 +1,4 @@ +import os """ Configuration module for PyFRC2G """ @@ -6,8 +7,8 @@ GATEWAY_TYPE = "pfsense" # pfSense Configuration -PFS_BASE_URL = "https://" -PFS_TOKEN = "" +PFS_BASE_URL = os.environ.get("PFS_BASE_URL") +PFS_TOKEN = os.environ.get("PFS_TOKEN") # OPNSense Configuration OPNS_BASE_URL = "https://"