Commit Graph

64 Commits

Author SHA1 Message Date
Ethan Knowlton 45192d651f added RSA and EDDSA 2023-11-04 22:56:51 -04:00
Ethan Knowlton bc03347fec probably should verify signing method -- and this only supports HMAC 2023-10-10 23:46:49 -04:00
Ethan Knowlton 7d2aab397c fix test 2023-10-10 16:31:22 -04:00
Ethan Knowlton d9bf3259e0 Added JWT Authentication 2023-10-10 15:52:05 -04:00
Ethan Knowlton 79c8f54d44 Cache in Redis
- [x] Pipeline to update binary on server when changes are pushed
- [x] Added config option for Cache TTL in Seconds in `/etc/echoip/config.toml
- [x] Updated Readme for Cache Options
- [x] Added `Null` cache for optional no use of cache

- [x] Adding Redis Cache
- [x] Moving configuration to file config
- [x] Automatic Release for amd64 linux
- [x] Adding automatic deployment

- Added `LICENSE` file to the release file
2023-10-07 01:21:52 -04:00
Ethan Knowlton 269bf95625 refactor module name to levelsoftware 2023-10-05 11:43:02 -04:00
Ethan Knowlton 6c950e10d3 some refactoring 2023-10-04 14:19:05 -04:00
Ethan Knowlton 410002ff47 upadted template, added https option for ipstack 2023-10-04 09:43:37 -04:00
Ethan Knowlton 6172d2f2ae fixed some tests for service flags 2023-09-23 09:52:20 -04:00
Ethan Knowlton 79e3d6a9be gofmt -- hopefuly what works 2023-09-22 21:28:49 -04:00
Ethan Knowlton 02619025af some refactoring, more to go 2023-09-22 21:23:16 -04:00
Ethan Knowlton 799eea7d12 added ip stack 2023-09-22 20:15:10 -04:00
Ethan Knowlton f152d2c2a8 oops 2023-09-22 14:35:32 -04:00
Ethan Knowlton e766f27d9d seperate parser from code, verify this is working -- then to add ipstack 2023-09-22 14:22:48 -04:00
Alphakilo dcefd6f1c6 implement `/asn-org` endpoint 2022-09-04 00:06:01 +02:00
Chloe Kudryavtsev 073e19b330
add xh to the list of cli utilities
xh is https://github.com/ducaale/xh
2021-08-03 16:04:43 -04:00
Thatcher ab8f90431b
New template (#121) 2020-12-14 19:02:35 +01:00
Martin Polden 762f454865 http: Include status in response 2020-12-09 21:16:11 +01:00
Martin Polden 86b68bdf55 http: Return bad request for invalid requests 2020-12-09 21:10:15 +01:00
Martin Polden a4808f1fa4 http: Log server errors 2020-12-09 21:10:10 +01:00
Martin Polden cd687f6343 http: Indent JSON responses
Fixes #114.
2020-11-09 21:58:40 +01: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 0caa5873b9 cmd: Remove go-flags 2020-09-05 11:41:18 +02:00
Chloe Kudryavtsev 7ad9af3b15 add cli detection for httpie-go 2020-07-23 18:41:07 -04: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
Richard Tweed d576730d08
Do not cache user agent (#98) 2020-06-07 23:16:35 +02:00
dshelikhov 226209d579
Add additional location fields (#84) 2020-05-10 14:23:50 +02:00
Martin Polden 78116f69ad Implement response cache 2019-12-25 21:04:26 +01: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
Niklas 7fbc2e1b9f ASN database, part 2 (#67)
ASN lookup
2019-07-05 15:01:45 +02:00
Martin Polden 58fd8a66fe Fix invalid port response
Closes #64
2019-01-16 22:16:05 +01:00
Christian Korneck b4b6207671 change highest allowed tcp port to 65535 2019-01-16 22:14:42 +01:00
Martin Polden ddc4d9e53c Log if template is unreadable 2018-12-28 15:05:31 +01:00
Johann Richard cba0928a65 Patch for a Map (#62)
Add map
2018-10-28 16:42:17 +01:00
Martin Polden 8433521b3b Differentiate between IsEU being false and unknown 2018-08-31 22:55:09 +02:00
Martin Polden 823af68923 Test /coordinates 2018-08-27 21:49:37 +02:00
Martin Polden 3e1d4425cd Rename fields 2018-08-27 21:49:37 +02:00
Martin Polden de54d88327 Fix build 2018-08-27 21:39:49 +02:00
Mike Raunsbæk ac4a9de770 Added coordinates from City database 2018-08-27 21:30:57 +02:00
Martin Polden 988f3fd19a Rename ipd -> echoip 2018-08-27 20:50:56 +02:00
rufo 6d915d0f96 use big int for decimal IP rather than uint64 2018-08-20 03:03:49 +01:00
Martin Polden a9c0587f87 Simplify 2018-08-14 21:32:29 +02:00
Martin Polden 33a8516004 Handle multiple IPs in X-Forwarded-For 2018-08-14 21:04:58 +02:00