Skip to content

Commit

Permalink
Few Changes in 10configure_environment_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed May 31, 2024
1 parent 33d6285 commit 2235591
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions imageroot/actions/configure-module/10configure_environment_vars
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ frontend_config = {
"REACT_APP_APPID": REACT_APP_APPID,
"REACT_APP_GTM": REACT_APP_GTM,
}
agent.write_envfile('frontend.env', frontend_config)
agent.write_envfile("frontend.env", frontend_config)

APP_ID = data.get('APP_ID', app_id)
appName = data.get('appName', 'NS8 Open Sign Server')
MASTER_KEY = data.get('MASTER_KEY', app_id)
Expand Down Expand Up @@ -71,7 +72,7 @@ storage_config = {
"USE_LOCAL": USE_LOCAL,
}

agent.write_envfile('storage.env', storage_config)
agent.write_envfile("storage.env", storage_config)
# SMTP Configuration
rdb = agent.redis_connect(use_replica=True)
smtp_settings = agent.get_smarthost_settings(rdb)
Expand Down Expand Up @@ -102,11 +103,11 @@ email_config = {
"SMTP_ENABLE": SMTP_ENABLED,
"SMTP_HOST": SMTP_HOST,
"SMTP_PORT": SMTP_PORT,
"SMTP_USER_EMAIL":SMTP_USERNAME,
"SMTP_PASS": SMTP_PASSWORD,
"SMTP_USER_EMAIL":f'{SMTP_USERNAME}',
"SMTP_PASS": f'{SMTP_PASSWORD}',
}

agent.write_envfile('email.env', email_config)
agent.write_envfile("email.env", email_config)

PFX_BASE64 = data.get('PFX_BASE64', pfx)
PASS_PHRASE = data.get('PASS_PHRASE', phrase)
Expand All @@ -131,11 +132,11 @@ MONGO_PORT = data.get('MONGO_PORT', '27017')

mongo_config = {
"MONGO_INITDB_ROOT_USERNAME": MONGO_INITDB_USERNAME,
"MONGO_INITDB_ROOT_PASSWORD": MONGO_INITDB_ROOT_PASSWORD,
"MONGO_INITDB_ROOT_PASSWORD": f'{MONGO_INITDB_ROOT_PASSWORD}',
"MONGO_INITDB_DATABASE": MONGO_INITDB_DATABASE,
"MONGO_INITDB_USERNAME": MONGO_INITDB_USERNAME,
"MONGO_INITDB_PASSWORD": MONGO_INITDB_PASSWORD,
"MONGO_INITDB_PASSWORD": f'{MONGO_INITDB_PASSWORD}',
"MONGO_HOST": MONGO_HOST,
"MONGO_PORT": MONGO_PORT,
}
agent.write_envfile('mongo.env', mongo_config)
agent.write_envfile("mongo.env", mongo_config)

0 comments on commit 2235591

Please sign in to comment.