authd/src/configuration.cr

25 lines
1017 B
Crystal
Raw Normal View History

require "baguette-crystal-base"
class Baguette::Configuration
class Auth < IPC
property service_name : String = "auth"
property recreate_indexes : Bool = false
2024-12-10 20:35:55 +01:00
property storage_directory : String = "db-authd"
property registrations : Bool = false
property require_email : Bool = false
property activation_template : String = "email-activation"
property recovery_template : String = "email-recovery"
property mailer_exe : String = "/usr/local/bin/mailer"
property read_only_profile_keys : Array(String) = Array(String).new
# Handle messages to display and to mask.
# Messages to mask, to focus on what is important.
property messages_to_mask : Array(AUTHMESSAGE) = [AUTHMESSAGE::KEEPALIVE]
# Path to the log file. No log file = just print everything.
property log_file : String? = nil
property print_password_recovery_parameters : Bool = false
end
end