Compare commits

...

2 commits

Author SHA1 Message Date
779aa7aacc
Update dependencies 2023-07-27 23:43:29 -07:00
7962172f9d
Add example config 2023-07-27 23:26:46 -07:00
3 changed files with 58 additions and 14 deletions

24
Cargo.lock generated
View file

@ -771,9 +771,9 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
[[package]]
name = "papergrid"
version = "0.9.1"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae7891b22598926e4398790c8fe6447930c72a67d36d983a49d6ce682ce83290"
checksum = "a2ccbe15f2b6db62f9a9871642746427e297b0ceb85f9a7f1ee5ff47d184d0c8"
dependencies = [
"bytecount",
"fnv",
@ -1044,18 +1044,18 @@ dependencies = [
[[package]]
name = "serde"
version = "1.0.174"
version = "1.0.177"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b88756493a5bd5e5395d53baa70b194b05764ab85b59e43e4b8f4e1192fa9b1"
checksum = "63ba2516aa6bf82e0b19ca8b50019d52df58455d3cf9bdaf6315225fdd0c560a"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.174"
version = "1.0.177"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e5c3a298c7f978e53536f95a63bdc4c4a64550582f31a0359a9afda6aede62e"
checksum = "401797fe7833d72109fedec6bfcbe67c0eed9b99772f26eb8afd261f0abc6fd3"
dependencies = [
"proc-macro2",
"quote",
@ -1064,9 +1064,9 @@ dependencies = [
[[package]]
name = "serde_json"
version = "1.0.103"
version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d03b412469450d4404fe8499a268edd7f8b79fecb074b0d812ad64ca21f4031b"
checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c"
dependencies = [
"itoa",
"ryu",
@ -1167,9 +1167,9 @@ dependencies = [
[[package]]
name = "tabled"
version = "0.12.2"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ce69a5028cd9576063ec1f48edb2c75339fd835e6094ef3e05b3a079bf594a6"
checksum = "4d38d39c754ae037a9bc3ca1580a985db7371cd14f1229172d1db9093feb6739"
dependencies = [
"papergrid",
"tabled_derive",
@ -1654,9 +1654,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
[[package]]
name = "winnow"
version = "0.5.0"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81fac9742fd1ad1bd9643b991319f72dd031016d44b77039a26977eb667141e7"
checksum = "25b5872fa2e10bd067ae946f927e726d7d603eaeb6e02fa6a350e0722d2b8c11"
dependencies = [
"memchr",
]

View file

@ -14,13 +14,13 @@ include = ["src/**/*", "LICENSE", "README.md"]
reqwest = { version = "0.11", features = ["json"] }
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = {version = "0.3", features = ["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
clap = { version = "4", features = ["derive", "cargo"] }
anyhow = "1"
toml = "0.7"
tabled = { version = "0.12", features = ["derive"] }
tabled = { version = "0.13", features = ["derive"] }
url = { version = "2", features = ["serde"] }
lettre = { version = "0.10", default_features = false, features = ["serde"] }
dirs = "5"

44
example_config.toml Normal file
View file

@ -0,0 +1,44 @@
[account]
# The email address associated with your account.
email = "your@email.com"
# The global API key associated with your account.
api_key = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
# A IP reflector service to use. Find your own; this service is not provided by
# this project. You need one for each type of DNS record you'd like to update.
[ip_reflector]
ipv4 = "https://what.is.my.ipv4.example"
# ipv6 = "https://what.is.my.ipv6.example"
[zone."example.com"]
# The Cloudflare zone's ID
id = "deadbeefdeadbeefdeadbeefdeadbeef"
# Zone record entries can only be created if you know the zone ID for each entry.
# Use `cloudflare-ddns list` after filling out everything before this comment
# to have them printed out.
[[zone."example.com".record]]
# Use @ for the root domain
name = "@"
# The Cloudflare DNS entry's ID
id = "fefefefefefefefefefefefefefefefe"
# Wether to proxy through Cloudflare or not.
proxy = false
# IPv4 (A) or IPv6 (AAAA)
type = "A"
[[zone."example.com".record]]
# For subdomains, just have the subdomain portion.
name = "irys"
id = "c0ffeec0ffeec0ffeec0ffeec0ffeec0"
proxy = true
type = "A"
[[zone."example.com".record]]
# The disabled flag, if provided, will disable this entry from dynamic updates.
disabled = true
name = "suisei"
id = "1337c0d31337c0d31337c0d31337c0d3"
proxy = true
type = "AAAA"