59bad8def4
Use more PathBuf wehre appropriate and possible
2025-04-11 21:56:19 +02:00
d5c5d30d32
cargo update
2025-03-20 00:04:34 +01:00
e81ce74a2f
Upgrade to hickory 0.25
...
This also solves a security advisory that could have lead to a denail of service via the ring crate.
2025-03-19 21:19:05 +01:00
caf47522e4
Use a fallback for when the requested dns resolver isn't available
2025-02-09 16:10:35 +01:00
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
d902dae35d
Use the log create instead of println
2025-02-09 15:11:17 +01:00
2b0c4eb3fb
Updated to lib-humus 0.3 and axum 0.8
2025-02-09 14:41:12 +01:00
708fb9c0b3
Improve configurability
2024-08-06 19:17:37 +02:00
52d2834e98
Replace lazy_static crate with "new" std::sync::LazyLock
2024-08-06 18:35:00 +02:00
13cb85ac5a
Added an opt-in to looking up own IP-Address
2024-04-21 00:00:04 +02:00
1ce60d8291
to_trust_resolver_config() -> to_hickory_resolver_config()
2024-02-11 11:52:33 +01:00
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
d706e7c614
Update to axum 0.7
2023-12-09 23:21:19 +01:00
fb0ce1dc0b
Update trust_dns to 23.2
2023-12-09 11:54:07 +01:00
636e10f786
Adapted to the new syncronous interface of the HumusEngine
2023-10-30 17:44:33 +01:00
f2e9e36e99
codename mycelium became lib-humus
2023-10-30 01:54:35 +01:00
912a119361
Made template loading logic reuseable
2023-10-29 20:52:32 +01:00
5adca4fb80
WIP moved templating engine to mycelium
2023-10-29 18:56:44 +01:00
51aa05fe13
Added query settings to the generaliued templating mechanism
2023-10-29 18:10:57 +01:00
a33473fdc9
Moved to a more genral implementation for the response format.
2023-10-29 15:23:47 +01:00
20fb7ee2ff
First step to detaching the templating from the logic.
2023-10-29 13:50:22 +01:00
5c74de5685
Switch a lot of Strings to Arc<str>
2023-10-08 09:12:06 +02:00
2aa6baaa57
Removed dns search functionality completely
...
I don't see it working and not being annoying
2023-08-07 21:52:31 +02:00
daa68bbd5d
Reenabled search prevention fqdn dot
2023-08-07 21:42:56 +02:00
2fe1b69174
Beeter communication of dns errors
2023-08-07 21:09:14 +02:00
2e1f6a77ac
Slightly better handling of invalid domain names
2023-08-07 20:05:25 +02:00
cf806ad8f5
Implemented global search config
2023-08-06 01:45:48 +02:00
e7eba57cb2
Added aliases and some servers to test them
2023-08-06 01:19:02 +02:00
a334eb428a
Proper dns configuration!
2023-08-06 00:04:42 +02:00
5c7d880733
Aded ranking of resolvers by a weight value
2023-08-05 23:19:53 +02:00
55897585ff
Broke out settings and fixed a bug with the dns resolver not being persisted
2023-08-05 22:53:48 +02:00
d88b15ba02
Persist resover choice using a cookie
2023-08-05 22:36:28 +02:00
727d9a77cd
Template passtrough for dns server information
2023-08-05 18:19:28 +02:00
104a072fd6
Configurable multiple dns resolvers
2023-08-04 00:00:21 +02:00
cd8c0455dc
First prototype with multiple dns providers
2023-07-23 15:23:44 +02:00
a9512d7d4d
Added a singal handler to make USR1 reload the geoip databses
2023-03-26 16:07:28 +02:00
6a57780490
Made the geoip database reloadable
2023-03-26 14:27:16 +02:00
896564791e
Added plain text (gemtext like) templates
2023-02-25 15:42:59 +01:00
aa384c9eff
Added an output to help when debugging static files
2023-02-25 13:43:43 +01:00
97507634df
Added the possibility to serve static files
2023-02-25 13:30:46 +01:00
a48050b234
Added some ratelimiting middleware
2023-02-25 12:14:50 +01:00
da13444a2e
Template improments, links, breadcrumbs for domain lookups
2023-02-24 00:01:51 +01:00
6e1d3c02ef
Improved error handling a bit
2023-02-23 21:28:17 +01:00
bb872bef3c
Fixed some idn edge cases
2023-02-23 13:20:18 +01:00
1108b7d653
Did some renaming because calling all those fields idna didn't really make sense.
...
Also switched to the less strict domain to ascii because the errors aren't exactly very well machine readable.
2023-02-23 11:32:30 +01:00
d202ebb14e
Added IDN support
2023-02-23 00:58:38 +01:00
e3054e0158
implemented text query logic
2023-02-22 23:07:43 +01:00
70f06ac501
Threw out some unneeded api
2023-02-22 21:32:10 +01:00
64498da57a
Added echoing of user agents
2023-02-21 10:51:28 +01:00
c7ba9a6346
Added configurable user agents that get served the text version by default
2023-02-21 10:00:10 +01:00