diff --git a/Makefile b/Makefile index 5c502f4..8240cce 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/assets/public/404.html b/assets/public/404.html new file mode 100644 index 0000000..cd7e294 --- /dev/null +++ b/assets/public/404.html @@ -0,0 +1,26 @@ + + + + 404 Not Found + + + +

404 Not Found

+

The page you are looking for does not exist.

+ + diff --git a/assets/public/_headers b/assets/public/_headers new file mode 100644 index 0000000..a152284 --- /dev/null +++ b/assets/public/_headers @@ -0,0 +1,2 @@ +/* + ! Access-Control-Allow-Origin diff --git a/assets/public/_redirects b/assets/public/_redirects new file mode 100644 index 0000000..022a3d0 --- /dev/null +++ b/assets/public/_redirects @@ -0,0 +1 @@ +/ https://nilfalse.com/ctf/ 301 diff --git a/assets/public/index.html b/assets/public/index.html new file mode 100644 index 0000000..e69de29 diff --git a/assets/public/maxmind/COPYRIGHT.txt b/assets/public/maxmind/COPYRIGHT.txt new file mode 100644 index 0000000..7fb7920 --- /dev/null +++ b/assets/public/maxmind/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2024 MaxMind, Inc. diff --git a/assets/public/maxmind/LICENSE.txt b/assets/public/maxmind/LICENSE.txt new file mode 100644 index 0000000..ee7434d --- /dev/null +++ b/assets/public/maxmind/LICENSE.txt @@ -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/. diff --git a/assets/public/robots.txt b/assets/public/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/assets/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /