dnsmanager/src/config.cr

30 lines
1.0 KiB
Crystal

class Baguette::Configuration
class DNSManager < IPC
property service_name : String = "dnsmanager"
property login : String = "dnsmanager"
property pass : String?
property recreate_indexes : Bool = false
property storage_directory : String = "db-dnsmanagerd"
# List of all accepted domains. Example: netlib.re.
property accepted_domains : Array(String)? = nil
# New domains require to load a template so the user won't have to enter some
# necessary entries himself. For example, SOA and NS RRs should be pre-loaded
# and updated by an administrator when required.
# See tools/write-template-zone-file.cr
property template_directory : String = "/etc/dnsmanager/templates"
# Handle messages to display and to mask.
# Messages to mask, to focus on what is important.
property messages_to_mask : Array(DNSMESSAGE) = [DNSMESSAGE::KEEPALIVE]
# Path to the log file. No log file = just print everything.
property log_file : String? = nil
def initialize
end
end
end