provide recaptcha keys
This commit is contained in:
parent
041ae37bea
commit
2abf8c7e75
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue