provide recaptcha keys

This commit is contained in:
Daniel afx 2022-02-06 01:16:01 +02:00
parent 041ae37bea
commit 2abf8c7e75
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,9 @@
FLASK_ENV=production
FLASK_APP=forest/__init__.py
APP_FOLDER=/home/app/web
SECRET_KEY=1dff602d522785d27d5bc203
SECRET_KEY=123
RECAPTCHA_PUBLIC_KEY=456
RECAPTCHA_PRIVATE_KEY=789
SQL_HOST=db
SQL_PORT=5432

View file

@ -6,6 +6,8 @@ basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = f"{os.getenv('SECRET_KEY')}"
RECAPTCHA_PUBLIC_KEY = f"{os.getenv('RECAPTCHA_PUBLIC_KEY')}"
RECAPTCHA_PRIVATE_KEY = f"{os.getenv('RECAPTCHA_PRIVATE_KEY')}"
SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL", "sqlite://")
SQLALCHEMY_TRACK_MODIFICATIONS = False
STATIC_FOLDER = f"{os.getenv('APP_FOLDER')}/forest/static"