Skip to content

Commit

Permalink
feat: added getting of configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Aug 18, 2024
1 parent 82791eb commit 0791160
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ import agent
# Prepare return variable
config = {}

if os.path.exists("keila.env"):
data = agent.read_envfile("keila.env")
config["KEILA_USER"] = data["KEILA_USER"]
config["KEILA_PASSWORD"] = data["KEILA_PASSWORD"]
else:
config["KEILA_USER"] = ""
config["KEILA_PASSWORD"] = ""
# Read current configuration from the environment file
config["host"] = os.getenv("TRAEFIK_HOST","")
config["http2https"] = os.getenv("TRAEFIK_HTTP2HTTPS") == "True"
Expand Down

0 comments on commit 0791160

Please sign in to comment.