From 836a9eb1ff91987dd9b351e1c7b123584bb1a40b Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Mon, 10 Jun 2024 21:25:04 +0200 Subject: [PATCH] Assets CDN --- Makefile | 6 ++++++ assets/public/404.html | 26 ++++++++++++++++++++++++++ assets/public/_headers | 2 ++ assets/public/_redirects | 1 + assets/public/index.html | 0 assets/public/maxmind/COPYRIGHT.txt | 1 + assets/public/maxmind/LICENSE.txt | 3 +++ assets/public/robots.txt | 2 ++ 8 files changed, 41 insertions(+) create mode 100644 assets/public/404.html create mode 100644 assets/public/_headers create mode 100644 assets/public/_redirects create mode 100644 assets/public/index.html create mode 100644 assets/public/maxmind/COPYRIGHT.txt create mode 100644 assets/public/maxmind/LICENSE.txt create mode 100644 assets/public/robots.txt diff --git a/Makefile b/Makefile index 5c502f4a..8240cceb 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 00000000..cd7e2943 --- /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 00000000..a152284f --- /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 00000000..022a3d04 --- /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 00000000..e69de29b diff --git a/assets/public/maxmind/COPYRIGHT.txt b/assets/public/maxmind/COPYRIGHT.txt new file mode 100644 index 00000000..7fb7920f --- /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 00000000..ee7434dc --- /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 00000000..1f53798b --- /dev/null +++ b/assets/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /