feat: complete rewrite of server component
This commit is contained in:
14 files changed
+673
-324
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# Copy to ~/etc/snap-dyndns/config.toml (outside the web root) and chmod 600.
|
||||
|
||||
# Where the last known IPs are cached (default shown)
|
||||
state_file = "~/etc/snap-dyndns/state.json"
|
||||
|
||||
[inwx]
|
||||
user = "api-user"
|
||||
pass = "api-password"
|
||||
# Only needed if the INWX account has 2FA enabled (base32 secret of the authenticator)
|
||||
# totp_secret = "JBSWY3DPEHPK3PXP"
|
||||
# Default is the live API. Use the OT&E test system for experiments:
|
||||
# api = "https://api.ote.domrobot.com/jsonrpc/"
|
||||
|
||||
# One section per hostname. The hostname is the Basic Auth user, the token the password.
|
||||
# The record (A and/or AAAA) must already exist at INWX.
|
||||
# Generate a token and its hash with:
|
||||
# python3 -c 'import secrets,hashlib;t=secrets.token_urlsafe(32);print(t, hashlib.sha256(t.encode()).hexdigest())'
|
||||
[hosts."user1.example.com"]
|
||||
token_sha256 = "replace-with-sha256-hex-of-the-token"
|
||||
# INWX zone, defaults to the last two labels of the hostname
|
||||
# zone = "example.co.uk"
|
||||
|
||||
[hosts."user2.example.com"]
|
||||
token_sha256 = "replace-with-another-hash"
|
||||
Reference in new issue
Block a user