From 338c669e76e46cfb1bbd87656ed0b53473fc6070 Mon Sep 17 00:00:00 2001 From: Elias Ojala Date: Mon, 17 Dec 2018 23:35:34 +0200 Subject: [PATCH 1/7] Fixed a link --- src/add-to-flagfox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-to-flagfox.php b/src/add-to-flagfox.php index abde40a..368573b 100644 --- a/src/add-to-flagfox.php +++ b/src/add-to-flagfox.php @@ -38,7 +38,7 @@
- Back to IPLookup + Back to IPLookup \ No newline at end of file From 0b299795842a36f67a5568041965c98b2c0834cb Mon Sep 17 00:00:00 2001 From: Elias Ojala Date: Sun, 30 Dec 2018 03:57:59 +0200 Subject: [PATCH 2/7] target _blank to bgp.he.net link --- src/templates/index.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/index.html.twig b/src/templates/index.html.twig index a44d0c4..c7736e2 100644 --- a/src/templates/index.html.twig +++ b/src/templates/index.html.twig @@ -65,7 +65,7 @@ Unknown {% endif %} {% if asn and isp %} - (AS{{asn}}) + (AS{{asn}}) {% endif %} From 486d296261b8b25e0ad155bf649186e3d3d62ebc Mon Sep 17 00:00:00 2001 From: Elias Ojala Date: Sun, 30 Dec 2018 14:07:25 +0200 Subject: [PATCH 3/7] JavaScriptless version --- Caddyfile | 2 +- docker-compose.yml | 2 +- src/templates/index.html.twig | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Caddyfile b/Caddyfile index 2667b99..ade4cc8 100644 --- a/Caddyfile +++ b/Caddyfile @@ -18,5 +18,5 @@ log stdout errors stdout -header / Content-Security-Policy "default-src 'self' ; media-src https://storage.theel0ja.info; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www1.theel0ja.info https://www0.theel0ja.info https://cdnjs.cloudflare.com https://cdn.theel0ja.info; style-src 'self' data: 'unsafe-inline' https://cdnjs.cloudflare.com https://getbootstrap.com https://cdn.theel0ja.info; img-src 'self' data: https://www0.theel0ja.info blob: https://cdn.rawgit.com; font-src data: ; connect-src https://sentry.io https://*.tiles.mapbox.com https://api.mapbox.com; child-src data: blob:; report-uri https://sentry.io/api/942255/csp-report/?sentry_key=87c404ea730a4a0cb596ca0caec20bbb;" +header / Content-Security-Policy "default-src 'self' ; media-src https://storage.theel0ja.info; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www1.theel0ja.info https://www0.theel0ja.info https://cdnjs.cloudflare.com https://cdn.theel0ja.info; style-src 'self' data: 'unsafe-inline' https://cdnjs.cloudflare.com https://getbootstrap.com https://cdn.theel0ja.info; img-src 'self' data: https://www0.theel0ja.info https://assets.theel0ja.info https://api.mapbox.com blob:; font-src data: ; connect-src https://sentry.io https://*.tiles.mapbox.com https://api.mapbox.com; child-src data: blob:; report-uri https://sentry.io/api/942255/csp-report/?sentry_key=87c404ea730a4a0cb596ca0caec20bbb;" header / X-Frame-Options "DENY" diff --git a/docker-compose.yml b/docker-compose.yml index 81c68ca..b45abeb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: . #image: abiosoft/caddy:php ports: - - 172.19.5.1:30005:2015 + - 37391:2015 volumes: - ./Caddyfile:/etc/Caddyfile - ./src:/app/src diff --git a/src/templates/index.html.twig b/src/templates/index.html.twig index c7736e2..8b63002 100644 --- a/src/templates/index.html.twig +++ b/src/templates/index.html.twig @@ -21,7 +21,21 @@ {% block content %}
-
+
+ +
- +
From 48fb4501c4ab784e2badaec877c57ff4afa3454c Mon Sep 17 00:00:00 2001 From: Elias Ojala Date: Tue, 16 Jul 2019 06:15:13 +0300 Subject: [PATCH 6/7] Delete useless stuff, self-hosted CDNJS --- src/.htaccess | 2 ++ src/add-to-flagfox.php | 4 +-- src/templates/base.html.twig | 52 +++++++++++++++++------------------ src/templates/index.html.twig | 34 +++++++++++------------ 4 files changed, 47 insertions(+), 45 deletions(-) create mode 100644 src/.htaccess diff --git a/src/.htaccess b/src/.htaccess new file mode 100644 index 0000000..f31ef2c --- /dev/null +++ b/src/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^([^/.]+)$ $1.php [L] diff --git a/src/add-to-flagfox.php b/src/add-to-flagfox.php index 368573b..887262b 100644 --- a/src/add-to-flagfox.php +++ b/src/add-to-flagfox.php @@ -6,7 +6,7 @@ Add to Flagfox - IPLookup - +