Commit Graph

282 Commits

Author SHA1 Message Date
Martin Polden 0d3594284e cmd: Reject non-option arguments 2020-12-03 22:28:27 +01:00
Martin Polden cd687f6343 http: Indent JSON responses
Fixes #114.
2020-11-09 21:58:40 +01:00
Martin Polden d6d4322885
Merge pull request #108 from Alphakilo/add-sri
introduce subresource integrity
2020-09-23 18:35:06 +02:00
Niklas 5794131a7c
introduce subresource integrity
added [integrity](https://developer.mozilla.org/de/docs/Web/Security/Subresource_Integrity) tags to external resources, so browser refuse to load content in case of SHA384 mismatch
2020-09-23 17:50:34 +02:00
Martin Polden 832f3655e8 http, cache: Track evictions 2020-09-12 10:11:47 +02:00
Martin Polden b7ed233452 http, cache: Support cache resizing 2020-09-12 10:11:38 +02:00
Martin Polden ceaff84709 http, cache: Expose cache stats 2020-09-11 21:18:41 +02:00
Martin Polden df49848167 cache: Reduce memory usage 2020-09-11 20:51:04 +02:00
Martin Polden bd8b1c7b97 cache: Fix memory leak
Slices never shrink.
2020-09-07 22:40:06 +02:00
Martin Polden 971c0e11f4 cache: Copy values 2020-09-05 22:07:57 +02:00
Martin Polden 6878f54585 http: Add support for profiling 2020-09-05 12:21:02 +02:00
Martin Polden fed1ffaf81 index: Remove duplicated info 2020-09-05 11:46:23 +02:00
Martin Polden 0caa5873b9 cmd: Remove go-flags 2020-09-05 11:41:18 +02:00
Martin Polden 702c1f1e23 build: Remove Heroku config 2020-08-23 17:22:28 +02:00
Martin Polden 11ad75c2d2 build: Add cross-compile target 2020-08-23 17:22:28 +02:00
Martin Polden fe68795a50
Merge pull request #102 from CosmicToast/httpie-go
add cli detection for httpie-go
2020-07-24 09:43:39 +02:00
Chloe Kudryavtsev 7ad9af3b15 add cli detection for httpie-go 2020-07-23 18:41:07 -04:00
Maxim Baz eb6d590990
index.html: move info about `?=ip` query param to a central place 2020-07-09 21:37:04 +02:00
Vincent Batts edbb0b6433
Support getting information about another IP (#94)
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-07-09 21:35:26 +02:00
Steven Honson 5377bffa96
Use http:// with fetch example (#99)
http:// is one letter shorter, more memorable and works even when echoip is hosted only via http
2020-06-15 23:24:37 +02:00
Maxim Baz bcb1b1106e
Enable experimental flag for docker-ce 2020-06-15 23:03:10 +02:00
Maxim Baz dc50a4c58f
Use another way to get latest docker on Travis 2020-06-15 22:45:07 +02:00
Maxim Baz 430d0dbf73
Update Travis to newer Ubuntu to (hopefully) get docker v19 2020-06-15 22:40:09 +02:00
Maxim Baz 767b032f4a
Make sure Travis is using latest docker version
https://docs.travis-ci.com/user/docker/#installing-a-newer-docker-version
2020-06-15 22:31:07 +02:00
Maka0 cd07ed644f
Updated Makefile to build multi-arch containers (#93)
Co-authored-by: Maka0 <bas@oddens.net>
2020-06-15 22:20:59 +02:00
Martin Polden ab71fac9e9
Merge pull request #100 from snh/patch-2
Include a link to bat
2020-06-15 19:59:06 +02:00
Steven Honson 8acb3b5dd0
Include a link to bat
Indlude a link to bat, since an example is provided for it.
2020-06-15 15:22:11 +10:00
Richard Tweed d576730d08
Do not cache user agent (#98) 2020-06-07 23:16:35 +02:00
Martin Polden 1f140df49f
Merge pull request #95 from craSH/patch-1
Update README.md to include -C/--cache-size
2020-05-17 09:45:52 +02:00
Ian Gallagher 1647debbcf
Update README.md to include -C/--cache-size
This updates the README's command help output to match the current version (it was missing the new cache feature options)
2020-05-16 16:31:13 -07:00
dshelikhov 226209d579
Add additional location fields (#84) 2020-05-10 14:23:50 +02:00
Martin Polden 2fe2f078e2
Merge pull request #89 from SuperSandro2000/docker-var
Allow overriding docker command
2020-04-08 12:06:19 +02:00
Sandro Jäckel 5fcd1740e7
Allow overriding docker command
with eg. sudo docker or podman
2020-04-08 05:06:14 +02:00
Martin Polden 2b0842de3f
Update copyright year 2020-04-07 17:59:23 +02:00
Martin Polden ce031f017d
Merge pull request #87 from SuperSandro2000/override-image-name
Allow overriding image name
2020-04-07 17:49:25 +02:00
Sandro Jäckel 8ad1d73d8c
Allow overriding image name 2020-04-07 04:23:06 +02:00
Martin Polden e67f493f51 Bump geoip2 2019-12-25 21:23:46 +01:00
Martin Polden 78116f69ad Implement response cache 2019-12-25 21:04:26 +01:00
Martin Polden 66719b9932 Download GeoIP databases on startup 2019-12-25 19:41:35 +01:00
Martin Polden 4974f9387b Require license key for GeoIP download
Fixes #72.
2019-12-24 17:15:45 +01:00
Willy Hsiao 1d478b5db3 Created a dark theme for index.html (#71) 2019-11-23 10:45:48 +01:00
Martin Polden c821c5c32a Use Go 1.13 in Docker build 2019-10-18 18:12:26 +02:00
Martin Polden 4add220bfd Use Go 1.13 on Heroku 2019-10-18 18:12:26 +02:00
Martin Polden c113173660 Remove unnecessary target 2019-10-18 18:12:26 +02:00
Martin Polden 95380233d8
Merge pull request #70 from kevinschoon/useragent
return parsed and raw user agent
2019-10-18 18:03:37 +02:00
Kevin 155c1a5afe return parsed and raw user agent 2019-07-13 22:50:31 +00:00
Sam B fb5fac92d2 Add Mikrotik as CLI client (#69) 2019-07-12 16:00:38 +02:00
Martin Polden 4ce6452332
Fix template 2019-07-05 16:17:34 +02:00
Niklas 7fbc2e1b9f ASN database, part 2 (#67)
ASN lookup
2019-07-05 15:01:45 +02:00
Martin Polden 5a28ed6bf5 Add data attribution 2019-06-26 20:22:59 +02:00