challenger

OAuth 2.0-based authentication service that validates user can receive messages at a certain address
Log | Files | Refs | Submodules | README | LICENSE

challenger.conf (1590B)


      1 # This file is in the public domain.
      2 
      3 # These are default/sample settings for a challenger backend.
      4 
      5 # General settings for the backend.
      6 [challenger]
      7 
      8 # Use TCP or UNIX domain sockets?
      9 SERVE = tcp
     10 
     11 # Which HTTP port does the backend listen on?  Only used if "SERVE" is 'tcp'.
     12 PORT = 9967
     13 
     14 # Which IP address should we bind to? i.e. 127.0.0.1 or ::1 for loopback.
     15 # Can also be given as a hostname.  We will bind to the wildcard (dual-stack)
     16 # if left empty.  Only used if "SERVE" is 'tcp'.
     17 # BIND_TO =
     18 
     19 # Which unix domain path should we bind to? Only used if "SERVE" is 'unix'.
     20 UNIXPATH = ${CHALLENGER_RUNTIME_DIR}/httpd/challenger.http
     21 # What should be the file access permissions (see chmod) for "UNIXPATH"?
     22 UNIXPATH_MODE = 660
     23 
     24 # Which database backend do we use?
     25 DB = postgres
     26 
     27 # How long is an individual validation request valid?
     28 VALIDATION_DURATION = 1d
     29 
     30 # How long is an validation valid?
     31 VALIDATION_EXPIRATION = 365d
     32 
     33 # Base URL of our service. Must end with '/'.
     34 #BASE_URL = https://challenger.DOMAIN/
     35 BASE_URL = http://localhost:9967/
     36 
     37 # Name of a file with the message to send with the challenge.
     38 MESSAGE_TEMPLATE_FILE = ${DATADIR}templates/default-challenge-message.txt
     39 
     40 # Which external command should be used to transmit challenges?
     41 # Example commands are challenger-send-{sms,email,post}.sh
     42 # AUTH_COMMAND =
     43 AUTH_COMMAND = /usr/bin/true
     44 
     45 # What address type are we validating? (phone, email, postal, etc.)
     46 # A template of the form 'enter-$ADDRESS_TYPE-form' must
     47 # exist and the field names must be supported by the
     48 # AUTH_COMMAND.
     49 #
     50 # ADDRESS_TYPE =
     51 ADDRESS_TYPE = postal