Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add Environment Variables to portal_config #1039

Open
msouff opened this issue Apr 18, 2024 · 0 comments
Open

[FEATURE] Add Environment Variables to portal_config #1039

msouff opened this issue Apr 18, 2024 · 0 comments

Comments

@msouff
Copy link
Contributor

msouff commented Apr 18, 2024

Describe the solution you'd like

portal_config.yml

settings:
  ...
  ENVIRONMENT_VARIABLES:
    VAR1: "val1"
    VAR2: "val2"
  ...

settings.py

...
# Add environment variables
ENVIRONMENT_VARIABLES = portal_config_settings.pop("ENVIRONMENT_VARIABLES", {})
for var, val in ENVIRONMENT_VARIABLES.items():
    os.environ[var] = val
...

Additional context
This would make it easier to add or overwrite portal and app related environment variables and keep track of them in the portal_config.

sdc50 added a commit that referenced this issue Apr 30, 2024
@swainn swainn added this to the Version 4.3 milestone May 10, 2024
@swainn swainn modified the milestones: Version 4.3, Version 5.0 Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants