Config module
- class Config.Config(config_path: str)
Bases:
ConfigParser
Class used for reading configuration file using configparser
Parses the configuration file
- Parameters:
config_path – path to configuration file
Required options:[Global]Host[str]: Bind api server to specified IP addressPort[int]: Bind api server to specified portAuth[int]: Disable/Enable authentication(0/1)Auth_admin_password[str]: Admin password when Auth enabledSSL_Key[str]: SSL key fileSSL_Cert[str]: SSL certificate fileSSL_CA[str]: CA certificates file[Memcached]Hosts[list]: addresses used for connecting to memcachedOptional:Options for all services:TTL[int]: number of seconds until a response is expired from the cache, 0 for no expiryLimit_calls[int]: number of calls to make to API within time specified by Limit_sec option before API limit is exceededLimit_sec[int]: number of seconds, with Limit_calls option allows to limit requests to API[VirusTotal]ApiKey[str]: key to use for authenticating with API[Shodan]ApiKey[str]: key to use for authenticating with API[Censys]ApiID[str]: ID used for authenticating with APIApiSecret[str]: secret used for authenticating with API[DomainTools]ApiUser[str]: user to use for authenticating with APIApiKey[str]: key to use for authenticating with API[MISP]List[list]: checked MISP warninglist, full list https://github.com/MISP/misp-warninglists/[SSLBL]URL[str]: URL with SSLBL IP feeds https://sslbl.abuse.ch/blacklist/sslipblacklist.csv[Alienvault]ApiKey[str]: key to use for authenticating with API[TOR]URL[str]: URL with TOR IP feeds https://check.torproject.org/exit-addresses[Kafka]Config[dict]: options to pass to kafka client, full list: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.mdTopic[str]: topic name