Skip to content

Commit 836a9eb

Browse files
committed
Assets CDN
1 parent d954255 commit 836a9eb

File tree

8 files changed

+41
-0
lines changed

8 files changed

+41
-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/404.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>404 Not Found</title>
5+
<style>
6+
body {
7+
background-color: #f1f1f1;
8+
font-family: Arial, sans-serif;
9+
text-align: center;
10+
padding-top: 100px;
11+
}
12+
h1 {
13+
font-size: 48px;
14+
color: #333;
15+
}
16+
p {
17+
font-size: 24px;
18+
color: #666;
19+
}
20+
</style>
21+
</head>
22+
<body>
23+
<h1>404 Not Found</h1>
24+
<p>The page you are looking for does not exist.</p>
25+
</body>
26+
</html>

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

Whitespace-only changes.

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)