class ScalewayDDNS::Config

Overview

Configuration for the Scaleway DDNS program.

Can be loaded from environment variables and adjusted at runtime.

Defined in:

scaleway_ddns/config.cr

Constant Summary

FALSY_VALUES = ["false", "n", "no", "0", "off", "disabled", "none", "null", "nil", "", false, 0] of String | Bool | Int32

Falsy values for boolean environment parsing.

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Creates a new instance of ScalewayDDNS::Config based on environment variables.


Instance Method Detail

def domain_list : Array(String) #

List of domains whose address record needs to be updated.


def domain_list=(domain_list : Array(String)) #

List of domains whose address record needs to be updated.


def enable_ipv4=(enable_ipv4 : Bool) #

Enables IPv4 address updates.


def enable_ipv4? : Bool #

Enables IPv4 address updates.


def enable_ipv6=(enable_ipv6 : Bool) #

Enables IPv6 address updates.


def enable_ipv6? : Bool #

Enables IPv6 address updates.


def idle_minutes : Int32 #

Number of minutes of inactivity between IP checks.


def idle_minutes=(idle_minutes : Int32) #

Number of minutes of inactivity between IP checks.


def scw_secret_key : String #

Secret key from Scaleway required for IP update.


def scw_secret_key=(scw_secret_key : String) #

Secret key from Scaleway required for IP update.