# requested token expiration in seconds (one month)
apiserver_token_expiration: 2592000

debug: false

flask {
    # Uncomment next line to disable login requirement while testing (or unit-testing)
    TESTING: False

    # Uncomment to allow reloading of templates if the caches version differs from the latest version
    TEMPLATES_AUTO_RELOAD: True

    # Flask-Login session protection ('basic', 'strong' or null)
    SESSION_PROTECTION: basic

    SESSION_COOKIE_HTTPONLY: True
    REMEMBER_COOKIE_HTTPONLY: True
    SESSION_COOKIE_SECURE: False
    REMEMBER_COOKIE_SECURE: False
}

listen {
    ip : "0.0.0.0"
    port: 8080
}

auth {
    cookies {
        httponly: true  # allow only http to access the cookies (no JS etc)
        secure: false   # not using HTTPS
        domain: null    # Limit to localhost is not supported
    }

    session_auth_cookie_name: "trains_token_basic"

    user_token_expiration_sec: 3600
}

docs {
    # Default filename used when file not found error is reported when serving docs.
    # This usually happans when the path is to a folder and not a file.
    default_filename: "index.html"
}

default_company: "d1bd92a3b039400cbafc60a7a5b1e52b"

redirect_to_https: false