Skip to content

Commit 038df36

Browse files
committed
Assets CDN
1 parent 7957016 commit 038df36

File tree

7 files changed

+61
-0
lines changed

7 files changed

+61
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ fmt :
1515
test :
1616
@ $(MAKE) --directory=lib/maxmind test
1717

18+
assets/public/maxmind/GeoLite2-Country.mmdb :
19+
mkdir -p `dirname $@`
20+
curl -vL "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${MAXMIND_LICENSE_KEY}&suffix=tar.gz" | tar --strip-components 1 -xzv -C `dirname $@`
21+
ls -lAh `dirname $@`
22+
1823
.PHONY : distclean
1924
distclean :
25+
-rm assets/public/maxmind/GeoLite2-Country.mmdb
2026
-@ $(MAKE) --directory=lib/maxmind clean
2127
-rm -r node_modules

assets/public/_headers

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*
2+
! Access-Control-Allow-Origin

assets/public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ https://nilfalse.com/ctf/ 301

assets/public/index.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Capture The Flag</title>
6+
<meta http-equiv="refresh" content="0; url=https://nilfalse.com/ctf/" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
9+
<link href="https://nilfalse.com" rel="preconnect" />
10+
<style>
11+
body {
12+
padding: 0;
13+
margin: 0;
14+
font-family: 'Segoe UI', Segoe, Tahoma, Geneva, sans-serif;
15+
font-size: 16px;
16+
background-color: #f2f5f7;
17+
color: #829ca9;
18+
}
19+
.header {
20+
padding: 16px 24px;
21+
background-color: #00bbff;
22+
color: rgba(255, 255, 255, 0.87);
23+
}
24+
.header ::selection {
25+
background-color: #fe57a1;
26+
}
27+
28+
.content {
29+
padding: 16px 32px;
30+
}
31+
</style>
32+
</head>
33+
<body>
34+
<header class="header">
35+
<h1 class="header__text">Capture The Flag</h1>
36+
</header>
37+
<p class="content">
38+
Redirecting to
39+
<a href="https://nilfalse.com/ctf/">nilfalse.com/ctf</a>
40+
</p>
41+
</body>
42+
43+
<script>
44+
location.replace('https://nilfalse.com/ctf/');
45+
</script>
46+
</html>

assets/public/maxmind/COPYRIGHT.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Database and Contents Copyright (c) 2024 MaxMind, Inc.

assets/public/maxmind/LICENSE.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Use of this MaxMind product is governed by MaxMind's GeoLite2 End User License Agreement, which can be viewed at https://www.maxmind.com/en/geolite2/eula.
2+
3+
This database incorporates GeoNames [https://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 4.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/.

assets/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /

0 commit comments

Comments
 (0)