Slatian
ba34caf8fc
Log not found errors to the debug channel
...
They are part of normal operation and shouldn't be logged in production.
2025-02-09 16:27:12 +01:00
Slatian
caf47522e4
Use a fallback for when the requested dns resolver isn't available
2025-02-09 16:10:35 +01:00
Slatian
b98bb67b4c
Make clippy happy
...
Mostly cleaning up type system crimes from when I was still learning rust:
* Abuse of `match` and loops
* Non-use of helper functions (`is_empty`, `is_none`)
* Use of borrowed owned types (`&String`)
* Implementing `Into` instead of `From`
2025-02-09 15:45:23 +01:00
Slatian
d902dae35d
Use the log create instead of println
2025-02-09 15:11:17 +01:00
Slatian
2b0c4eb3fb
Updated to lib-humus 0.3 and axum 0.8
2025-02-09 14:41:12 +01:00
Slatian
708fb9c0b3
Improve configurability
2024-08-06 19:17:37 +02:00
Slatian
1863af50f8
Remove unused configuration option
2024-08-06 18:36:40 +02:00
Slatian
52d2834e98
Replace lazy_static crate with "new" std::sync::LazyLock
2024-08-06 18:35:00 +02:00
Slatian
13cb85ac5a
Added an opt-in to looking up own IP-Address
2024-04-21 00:00:04 +02:00
Slatian
1ce60d8291
to_trust_resolver_config() -> to_hickory_resolver_config()
2024-02-11 11:52:33 +01:00
Slatian
610842abac
Remove unused import
2024-02-11 11:51:08 +01:00
Slatian
b08c98376c
Update trust_dns to hickory
...
It doesn't work yet because of:
https://github.com/hickory-dns/hickory-dns/issues/2108
2023-12-10 18:34:20 +01:00
Slatian
d706e7c614
Update to axum 0.7
2023-12-09 23:21:19 +01:00
Slatian
fb0ce1dc0b
Update trust_dns to 23.2
2023-12-09 11:54:07 +01:00
Slatian
636e10f786
Adapted to the new syncronous interface of the HumusEngine
2023-10-30 17:44:33 +01:00
Slatian
f2e9e36e99
codename mycelium became lib-humus
2023-10-30 01:54:35 +01:00
Slatian
912a119361
Made template loading logic reuseable
2023-10-29 20:52:32 +01:00
Slatian
5adca4fb80
WIP moved templating engine to mycelium
2023-10-29 18:56:44 +01:00
Slatian
5ac056ef99
Made sure the get_status and update_response callbacks are used correctly
2023-10-29 18:20:57 +01:00
Slatian
51aa05fe13
Added query settings to the generaliued templating mechanism
2023-10-29 18:10:57 +01:00
Slatian
de179ea7fa
Proper MimeType handling with mycelium
2023-10-29 16:51:43 +01:00
Slatian
bfa383ddbe
Fixed template data piping
2023-10-29 15:36:16 +01:00
Slatian
a33473fdc9
Moved to a more genral implementation for the response format.
2023-10-29 15:23:47 +01:00
Slatian
20fb7ee2ff
First step to detaching the templating from the logic.
2023-10-29 13:50:22 +01:00
Slatian
5c74de5685
Switch a lot of Strings to Arc<str>
2023-10-08 09:12:06 +02:00
Slatian
2aa6baaa57
Removed dns search functionality completely
...
I don't see it working and not being annoying
2023-08-07 21:52:31 +02:00
Slatian
daa68bbd5d
Reenabled search prevention fqdn dot
2023-08-07 21:42:56 +02:00
Slatian
231e46a688
Disabled domain search as it caused problems
2023-08-07 21:40:22 +02:00
Slatian
2fe1b69174
Beeter communication of dns errors
2023-08-07 21:09:14 +02:00
Slatian
2e1f6a77ac
Slightly better handling of invalid domain names
2023-08-07 20:05:25 +02:00
Slatian
1fe59d24d5
Discard additional responses instead of misattributing them
2023-08-07 19:03:18 +02:00
Slatian
cf806ad8f5
Implemented global search config
2023-08-06 01:45:48 +02:00
Slatian
e7eba57cb2
Added aliases and some servers to test them
2023-08-06 01:19:02 +02:00
Slatian
a334eb428a
Proper dns configuration!
2023-08-06 00:04:42 +02:00
Slatian
5c7d880733
Aded ranking of resolvers by a weight value
2023-08-05 23:19:53 +02:00
Slatian
55897585ff
Broke out settings and fixed a bug with the dns resolver not being persisted
2023-08-05 22:53:48 +02:00
Slatian
d88b15ba02
Persist resover choice using a cookie
2023-08-05 22:36:28 +02:00
Slatian
fdb23312df
Made templates work with new data.
2023-08-05 21:09:56 +02:00
Slatian
727d9a77cd
Template passtrough for dns server information
2023-08-05 18:19:28 +02:00
Slatian
104a072fd6
Configurable multiple dns resolvers
2023-08-04 00:00:21 +02:00
Slatian
cd8c0455dc
First prototype with multiple dns providers
2023-07-23 15:23:44 +02:00
Slatian
a9512d7d4d
Added a singal handler to make USR1 reload the geoip databses
2023-03-26 16:07:28 +02:00
Slatian
6a57780490
Made the geoip database reloadable
2023-03-26 14:27:16 +02:00
Slatian
3bcf8fde39
Use tokio concurrency knowlege to speed up DNS queries
2023-03-05 14:07:09 +01:00
Slatian
896564791e
Added plain text (gemtext like) templates
2023-02-25 15:42:59 +01:00
Slatian
aa384c9eff
Added an output to help when debugging static files
2023-02-25 13:43:43 +01:00
Slatian
97507634df
Added the possibility to serve static files
2023-02-25 13:30:46 +01:00
Slatian
a48050b234
Added some ratelimiting middleware
2023-02-25 12:14:50 +01:00
Slatian
9f3b6d0c17
Deduplication for dns records
2023-02-25 12:08:46 +01:00
Slatian
c1cd66782f
Rename to echoip-slatecave, AGPL License and README
2023-02-24 21:38:33 +01:00