aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-02-10 00:51:44 +0000
committerGravatar GitHub <[email protected]>2021-02-10 00:51:44 +0000
commit0515475c453769c75e5724b6b47caf1b630b00c1 (patch)
treec60ab78943c221da6d5701f9c1d156ef43817563
parentUpdate ALLOWED_HOSTS (diff)
Update hosts.py
-rw-r--r--pydis_site/hosts.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pydis_site/hosts.py b/pydis_site/hosts.py
index 898e8cdc..4e55d838 100644
--- a/pydis_site/hosts.py
+++ b/pydis_site/hosts.py
@@ -4,7 +4,10 @@ from django_hosts import host, patterns
host_patterns = patterns(
'',
host(r'admin', 'pydis_site.apps.admin.urls', name="admin"),
- host(r'api', 'pydis_site.apps.api.urls', name='api'),
+ # External API ingress (over the net)
+ host(r'api', 'pydis_site.apps.api.urls', name='external_api'),
+ # Internal API ingress (cluster local)
+ host(r'pydis-api', 'pydis_site.apps.api.urls', name='internal_api'),
host(r'staff', 'pydis_site.apps.staff.urls', name='staff'),
host(r'.*', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST)
)