diff options
author | 2021-09-04 10:32:10 +0100 | |
---|---|---|
committer | 2021-09-04 10:32:10 +0100 | |
commit | 8a4b1a15262a91d486c4b95e19533d4d44dd7c2b (patch) | |
tree | 798d897478b56dfa701a16660cc7310cb7a09148 /pydis_site | |
parent | Merge pull request #575 from python-discord/jb3/django-prometheus (diff) |
Add pod IPs to allowed hosts
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/settings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 6f49763b..0aa66322 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -14,6 +14,7 @@ import os import secrets import sys from pathlib import Path +from socket import gethostname, gethostbyname import environ import sentry_sdk @@ -59,6 +60,8 @@ else: 'api.pythondiscord.com', 'staff.pythondiscord.com', 'pydis-api.default.svc.cluster.local', + gethostname(), + gethostbyname(gethostname()) ] ) SECRET_KEY = env('SECRET_KEY') |