enable load extra apps

This commit is contained in:
neodb dev 2023-12-23 23:55:33 -05:00 committed by Henri Dickson
parent ca5f12eede
commit 19633ca284
2 changed files with 5 additions and 0 deletions

View file

@ -42,6 +42,7 @@ env = environ.FileAwareEnv(
# (generated by `neodb-manage invite --create`)
NEODB_INVITE_ONLY=(bool, False),
NEODB_ENABLE_LOCAL_ONLY=(bool, False),
NEODB_EXTRA_APPS=(list, []),
# Mastodon/Pleroma instance allowed to login, keep empty to allow any instance to login
NEODB_LOGIN_MASTODON_WHITELIST=(list, []),
# DATABASE
@ -295,6 +296,9 @@ INSTALLED_APPS += [
"legacy.apps.LegacyConfig",
]
for app in env("NEODB_EXTRA_APPS"):
INSTALLED_APPS.append(app)
INSTALLED_APPS += [ # we may override templates in these 3rd party apps
"oauth2_provider",
]

View file

@ -42,6 +42,7 @@ x-shared:
NEODB_EMAIL_URL:
NEODB_EMAIL_FROM: no-reply@${NEODB_SITE_DOMAIN}
NEODB_ENABLE_LOCAL_ONLY:
NEODB_EXTRA_APPS:
NEODB_FANOUT_LIMIT_DAYS:
TAKAHE_FANOUT_LIMIT_DAYS:
NEODB_DOWNLOADER_PROXY_LIST: