webnsupdate (0.4.4)
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add webnsupdate@0.4.4 --registry forgejoAbout this package
An HTTP server using HTTP basic auth to make secure calls to nsupdate
Web NS update
A webserver API for nsupdate. This is only intended for my usecase, so feel free to take inspiration, but don't expect this to be useful to you.
Usage
Note
This was made because I needed it. It probably wont fit your usecase.
Using a flake NixOS configuration add these lines:
{
inputs.webnsupdate.url = "github:jalil-salame/webnsupdate";
# inputs.webnsupdate.inputs.nixpkgs.follows = "nixpkgs"; # deduplicate nixpkgs
# ...
outputs = {
nixpkgs,
webnsupdate,
...
}: {
# ...
nixosConfigurations.hostname = let
system = "...";
pkgs = import nixpkgs {
inherit system;
# IMPORTANT -----------v
overlays = [webnsupdate.overlays.default];
};
in {
inherit system pkgs;
modules = [
webnsupdate.nixosModules.default
{
services.webnsupdate = {
enable = true;
# ...
};
}
];
};
# ...
};
}
Update URL format
Follow the Fritz!BOX format for update URLs: https://fritzhelp.avm.de/help/en/FRITZ-Box-7530-AX/avm/024p2/hilfe_dyndns_update_url_bauen
Dependencies
| ID | Version |
|---|---|
| axum | ^0.8.4 |
| axum-client-ip | ^1.1.3 |
| base64 | ^0.22.1 |
| clap | ^4.5.46 |
| clap-verbosity-flag | ^3.0.4 |
| humantime | ^2.2.0 |
| miette | ^7.6.0 |
| ring | ^0.17.14 |
| serde | ^1.0.219 |
| serde_json | ^1.0.143 |
| thiserror | ^2.0.16 |
| tokio | ^1.47.1 |
| tower-http | ^0.6.6 |
| tracing | ^0.1.41 |
| tracing-subscriber | ^0.3.20 |
| insta | ^1.43.1 |
Keywords
dns
dyndns
dynamic-ip
Details
Assets (1)
Versions (7)
View all
webnsupdate-0.4.4.crate
33 KiB