Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace homegrown config parser with figment #41

Merged
merged 4 commits into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 117 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions config/do_ddns.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ update_interval = "30mins"
digital_ocean_token = "aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz"

# Setting this option to true will cause the final IP updates to be skipped.
dry_run = "false"
dry_run = false

# Setting this option to true will enable resolving of ipv6 addresses and
# storing them in AAAA records.
# ipv6 = "true"
# ipv6 = true

# Enable collection of statistics (how often does the public IP change) in
# a local sqlite database.
# Disabled by default.
# collect_stats = "true"
# collect_stats = true

# File path where the sqlite database with statistics will be stored.
# By default stored in one of the following locations:
Expand All @@ -26,16 +26,16 @@ dry_run = "false"

# Enable web server to visualize collected statistics.
# Disabled by default.
# enable_web = "true"
# enable_web = true

# An IPv4 / IPv6 address or host name where to serve HTTP pages on.
# In case of host that has a dual IP stack, both will be used.
# Default is localhost.
# listen_hostname = "true"
# listen_hostname = true

# Port number where to serve HTTP pages on.
# Default is 8095.
# listen_port = "8095"
# listen_port = 8095

## Simple config mode sample

Expand All @@ -48,7 +48,7 @@ subdomain_to_update = "home"

# Updates the IP of the 'mysite.com' A record.
# domain_root = "mysite.com"
# update_domain_root = "true"
# update_domain_root = true


## Advanced config mode sample
Expand Down
8 changes: 5 additions & 3 deletions crates/dyndns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,22 @@ web = [

[dependencies]
chrono = { version = "0.4", default-features = false, features = ["alloc", "serde", "clock"] }
clap = { version = "4", features = ["cargo"] }
clap = { version = "4", features = ["cargo", "derive"] }
color-eyre = "0.6"
figment = { version = "0.10", features = ["env", "toml", "test"] }
figment_file_provider_adapter = "0.1"
humantime = "2"
humantime-serde = "1"
itertools = "0.10"
native-tls = { version = "0.2", features = ["vendored"] }
once_cell = "1"
reqwest = { version = "0.11", features = ["blocking", "json"] }
secrecy = "0.8"
secrecy = { version = "0.8", features = ["serde"] }
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
serde_with = "3"
signal-hook = { version = "0.3", features = ["extended-siginfo"] }
tailsome = "1"
toml = "0.7"
tracing = "0.1"
tracing-log = "0.1"
tracing-subscriber = "0.3"
Expand Down
Loading