Configuration for the Scaleway DDNS program.
Can be loaded from environment variables and adjusted at runtime.
Constants
DEFAULT_IDLE_MINUTES = 60
Number of minutes between IP checks when none is configured.
FALSY_VALUES = ["false", "n", "no", "0", "off", "disabled", "none", "null", "nil", ""]
Falsy values for boolean environment parsing.
IDLE_MINUTES_RANGE = (1..1440)
Accepted range for IDLE_MINUTES.
Constructors
new
Creates a new instance of ScalewayDDNS::Config based on environment variables.
SourceInstance methods
domain_list
List of domains whose address record needs to be updated.
SourceList of domains whose address record needs to be updated.
Sourceenable_ipv4=(enable_ipv4 :
Bool)
Enables IPv4 address updates.
Sourceenable_ipv4?
Enables IPv4 address updates.
Sourceenable_ipv6=(enable_ipv6 :
Bool)
Enables IPv6 address updates.
Sourceenable_ipv6?
Enables IPv6 address updates.
Sourceidle_minutes
Number of minutes of inactivity between IP checks.
Sourceidle_minutes=(idle_minutes :
Int32)
Number of minutes of inactivity between IP checks.
Sourcescw_secret_key
Secret key from Scaleway required for IP update.
Sourcescw_secret_key=(scw_secret_key :
String)
Secret key from Scaleway required for IP update.
Source