Skip to content

Commit

Permalink
Assets CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-ilin committed Jun 10, 2024
1 parent 7957016 commit 357023e
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ fmt :
test :
@ $(MAKE) --directory=lib/maxmind test

assets/public/maxmind/GeoLite2-Country.mmdb :
mkdir -p `dirname $@`
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 $@`
ls -lAh `dirname $@`

.PHONY : distclean
distclean :
-rm assets/public/maxmind/GeoLite2-Country.mmdb
-@ $(MAKE) --directory=lib/maxmind clean
-rm -r node_modules
26 changes: 26 additions & 0 deletions assets/public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!doctype html>
<html>
<head>
<title>404 Not Found</title>
<style>
body {
background-color: #f1f1f1;
font-family: Arial, sans-serif;
text-align: center;
padding-top: 100px;
}
h1 {
font-size: 48px;
color: #333;
}
p {
font-size: 24px;
color: #666;
}
</style>
</head>
<body>
<h1>404 Not Found</h1>
<p>The page you are looking for does not exist.</p>
</body>
</html>
2 changes: 2 additions & 0 deletions assets/public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*
! Access-Control-Allow-Origin
1 change: 1 addition & 0 deletions assets/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ https://nilfalse.com/ctf/ 301
Empty file added assets/public/index.html
Empty file.
1 change: 1 addition & 0 deletions assets/public/maxmind/COPYRIGHT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Database and Contents Copyright (c) 2024 MaxMind, Inc.
3 changes: 3 additions & 0 deletions assets/public/maxmind/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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.

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/.
2 changes: 2 additions & 0 deletions assets/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit 357023e

Please sign in to comment.