Skip to content

Commit

Permalink
fix: fixed errors on get configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Dec 28, 2024
1 parent 95f3d66 commit 327879c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ config["host"] = os.getenv("TRAEFIK_HOST","")
config["http2https"] = os.getenv("TRAEFIK_HTTP2HTTPS") == "True"
config["lets_encrypt"] = os.getenv("TRAEFIK_LETS_ENCRYPT") == "True"

# Dump the configuration to stdout
# json.dump(config, fp=sys.stdout)
if os.path.exists("coolify.env"):
data = agent.read_envfile("coolify.env")

if os.path.exists("postgres.env"):
data = agent.read_envfile("postgres.env")

if os.path.exists("redis.env"):
data = agent.read_envfile("redis.env")

if os.path.exists("soketi.env"):
data = agent.read_envfile("soketi.env")
# # Dump the configuration to stdout
# # json.dump(config, fp=sys.stdout)
# if os.path.exists("coolify.env"):
# data = agent.read_envfile("coolify.env")
#
# if os.path.exists("postgres.env"):
# data = agent.read_envfile("postgres.env")
#
# if os.path.exists("redis.env"):
# data = agent.read_envfile("redis.env")
#
# if os.path.exists("soketi.env"):
# data = agent.read_envfile("soketi.env")

json.dump(config, fp=sys.stdout)

0 comments on commit 327879c

Please sign in to comment.