Skip to content

Commit 2cce3f7

Browse files
authored
Add redirect for topology (#376)
Add general and permanent URL for topology (to be used as a reference in some publications) in case we replace the PNG image with something else in the future.
1 parent ba1b478 commit 2cce3f7

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ jobs:
284284
grep --quiet "^Server: Caddy" /tmp/headers.txt
285285
grep --quiet "^Server: gunicorn" /tmp/headers.txt
286286
curl --fail --silent "http://localhost/login/" > /dev/null
287+
curl --fail --silent "http://localhost/topology" > /dev/null
287288
curl --fail --silent "http://localhost/topology.png" > /dev/null
288289
curl --fail --silent "http://localhost/api/v2/topology/topology" > /dev/null
289290

scionlab/settings/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
MAINTENANCE_MODE_IGNORE_ADMIN_SITE = True
9999
MAINTENANCE_MODE_IGNORE_URLS = (
100100
r'^/$', # home
101+
r'^/topology$', # topology map on home page
101102
r'^/topology.png$', # topology map on home page
102103
r'^/api/', # get config, set deployed version
103104
)

scionlab/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
name='user_as_detail'),
7373

7474
path('topology.png', topology_png, name='topology.png'),
75+
path('topology',
76+
RedirectView.as_view(url='/topology.png')),
7577

7678
# API:
7779
path('api/v3/host/<slug:uid>/config',

0 commit comments

Comments
 (0)