Skip to content

Commit

Permalink
Added: FORM_CONFIG_PATH app config (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Mar 23, 2024
1 parent e9794ca commit ef899bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libreforms_fastapi/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ def validate_timezone(cls, v):
# see https://github.com/signebedi/libreforms-fastapi/issues/18.
UI_ENABLED:bool = os.getenv('UI_ENABLED', 'True') == 'True'

# Here we specify a path to our JSON form config representation, see
# https://github.com/signebedi/libreforms-fastapi/issues/37.
FORM_CONFIG_PATH:str = os.getenv('FORM_CONFIG_PATH', os.path.join(os.path.join(os.getcwd(), "instance", "form_config.json")))

SMTP_ENABLED:bool = os.getenv('SMTP_ENABLED', 'False') == 'True'
SMTP_MAIL_SERVER:str = os.getenv('SMTP_MAIL_SERVER', "")
SMTP_PORT:int = int(os.getenv('SMTP_PORT', 25))
Expand Down

0 comments on commit ef899bc

Please sign in to comment.