Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 06aaa85

Browse files
committed
moved matrix auth api settings in pycon/settings.py and/or .env file (installation-specific)
1 parent a85b46b commit 06aaa85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pycon/settings.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,3 +726,15 @@ def CONFERENCE_SCHEDULE_ATTENDEES(schedule, forecast):
726726
# Complete project setup.
727727
if not os.path.exists(LOGS_DIR):
728728
os.makedirs(LOGS_DIR)
729+
730+
# Matrix Auth API settings
731+
MATRIX_AUTH_API_DEBUG = config(
732+
'MATRIX_AUTH_API_DEBUG',
733+
default=False,
734+
cast=bool
735+
)
736+
MATRIX_AUTH_API_ALLOWED_IPS = config(
737+
'MATRIX_AUTH_API_ALLOWED_IPS',
738+
default='',
739+
cast=lambda v: [s.strip() for s in v.split(',')]
740+
)

0 commit comments

Comments
 (0)