ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | README | LICENSE

challenger-email.conf.j2 (1586B)


      1 # General settings for the backend.
      2 [challenger]
      3 
      4 # Use TCP or UNIX domain sockets?
      5 SERVE = UNIX
      6 
      7 # Which unix domain path should we bind to? Only used if "SERVE" is 'unix'.
      8 UNIXPATH = /run/challenger-email/challenger-http.sock
      9 
     10 # What should be the file access permissions (see chmod) for "UNIXPATH"?
     11 UNIXPATH_MODE = 666
     12 
     13 # Which external command should be used to transmit challenges?
     14 # Example commands are challenger-send-{sms,email,post}
     15 {% if devtesting_mock_mfa | bool %}
     16 AUTH_COMMAND = mock-mfa-email
     17 {% else %}
     18 AUTH_COMMAND = challenger-send-email
     19 {% endif %}
     20 
     21 # How long is an individual validation request valid?
     22 VALIDATION_DURATION = 7d
     23 
     24 # How long is an validation valid?
     25 VALIDATION_EXPIRATION = 3650d
     26 
     27 # Name of a file with the message to send with the challenge.
     28 MESSAGE_TEMPLATE_FILE = /etc/challenger/email-message-template.txt
     29 
     30 # Publicly visible base URL of the challenger.
     31 # BASE_URL = https://example.com/
     32 BASE_URL = https://email.challenger.{{ domain_name }}/
     33 
     34 # What address type are we validating? (phone, email, address, etc.)
     35 # A template of the form 'enter-$ADDRESS_TYPE-form' must
     36 # exist and the field names must be supported by the
     37 # AUTH_COMMAND.
     38 #
     39 ADDRESS_TYPE = email
     40 
     41 # Hint to show on the address format.
     42 ADDRESS_HINT = "user@example.com"
     43 
     44 # What addresses are allowed.
     45 ADDRESS_RESTRICTIONS = {"CONTACT_EMAIL":{"hint":"valid e-mail address required","regex":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"}}
     46 
     47 [challengerdb-postgres]
     48 #The connection string the plugin has to use for connecting to the database
     49 CONFIG = postgres:///challenger-email