示例#1
0
 def settings(self):
     s = []
     s.append(PluginSettingBool('blocklist_enabled', 'Enabled', True))
     s.append(
         PluginSettingTextList('blocklist_dirs', 'Rule Directories',
                               ['plugins/blocklist/rules']))
     return s
示例#2
0
 def settings(self):
     s = []
     s.append(PluginSettingBool('cdn_purge_enable', 'Enabled', False))
     s.append(PluginSettingText('cdn_purge_uri', 'URI', 'https://bunnycdn.com/api/purge?url=https://lvfs.b-cdn.net/downloads/'))
     s.append(PluginSettingText('cdn_purge_accesskey', 'Accesskey', ''))
     s.append(PluginSettingTextList('cdn_purge_files', 'File Whitelist', ['*.xml.gz', '*.xml.gz.*']))
     s.append(PluginSettingText('cdn_purge_method', 'Request method', 'GET'))
     return s
示例#3
0
 def settings(self):
     s = []
     s.append(PluginSettingBool('blocklist_enabled', 'Enabled', True))
     s.append(
         PluginSettingTextList('blocklist_values', 'Values', [
             'DO NOT TRUST::IBV example certificate being used',
             'DO NOT SHIP::IBV example certificate being used'
         ]))
     return s
示例#4
0
 def settings(self):
     s = []
     s.append(PluginSettingBool('virustotal_enable', 'Enabled', True))
     s.append(
         PluginSettingTextList('virustotal_remotes',
                               'Upload Firmware in Remotes',
                               ['stable', 'testing']))
     s.append(PluginSettingText('virustotal_api_key', 'API Key',
                                'DEADBEEF'))
     s.append(
         PluginSettingText(
             'virustotal_uri', 'Host',
             'https://www.virustotal.com/api/v3/monitor/items'))
     s.append(
         PluginSettingText('virustotal_user_agent', 'User Agent', 'LVFS'))
     return s