From c99106fa42d53b02cf5dec8b9f8c659041becfc7 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 27 Feb 2024 07:09:56 +1300 Subject: [PATCH] default config --- config.py | 6 +++--- env.sample | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index bb5de205..256e211a 100644 --- a/config.py +++ b/config.py @@ -32,7 +32,7 @@ class Config(object): SQLALCHEMY_ECHO = False # set to true to see SQL in console WTF_CSRF_TIME_LIMIT = None # a value of None ensures csrf token is valid for the lifetime of the session - BOUNCE_HOST = os.environ.get('BOUNCE_HOST') - BOUNCE_USERNAME = os.environ.get('BOUNCE_USERNAME') - BOUNCE_PASSWORD = os.environ.get('BOUNCE_PASSWORD') + BOUNCE_HOST = os.environ.get('BOUNCE_HOST') or '' + BOUNCE_USERNAME = os.environ.get('BOUNCE_USERNAME') or '' + BOUNCE_PASSWORD = os.environ.get('BOUNCE_PASSWORD') or '' diff --git a/env.sample b/env.sample index 254f99a7..49badda2 100644 --- a/env.sample +++ b/env.sample @@ -10,3 +10,7 @@ CACHE_TYPE='FileSystemCache' CACHE_DIR='/dev/shm/pyfedi' CELERY_BROKER_URL='redis://localhost:6379/1' CACHE_REDIS_URL='redis://localhost:6379/1' + +BOUNCE_HOST='' +BOUNCE_USERNAME='' +BOUNCE_PASSWORD=''