mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-05 15:27:53 +10:00
improve plugin tests and config
This commit is contained in:
21
archivebox/plugins/ssl/config.json
Normal file
21
archivebox/plugins/ssl/config.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required_plugins": ["chrome"],
|
||||
"properties": {
|
||||
"SSL_ENABLED": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"x-aliases": ["SAVE_SSL", "USE_SSL"],
|
||||
"description": "Enable SSL certificate capture"
|
||||
},
|
||||
"SSL_TIMEOUT": {
|
||||
"type": "integer",
|
||||
"default": 30,
|
||||
"minimum": 5,
|
||||
"x-fallback": "TIMEOUT",
|
||||
"description": "Timeout for SSL capture in seconds"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -197,9 +197,9 @@ async function main() {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (!getEnvBool('SAVE_SSL', true)) {
|
||||
console.error('Skipping (SAVE_SSL=False)');
|
||||
console.log(JSON.stringify({type: 'ArchiveResult', status: 'skipped', output_str: 'SAVE_SSL=False'}));
|
||||
if (!getEnvBool('SSL_ENABLED', true)) {
|
||||
console.error('Skipping (SSL_ENABLED=False)');
|
||||
console.log(JSON.stringify({type: 'ArchiveResult', status: 'skipped', output_str: 'SSL_ENABLED=False'}));
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
|
||||
0
archivebox/plugins/ssl/templates/icon.html
Normal file
0
archivebox/plugins/ssl/templates/icon.html
Normal file
0
archivebox/plugins/ssl/templates/thumbnail.html
Normal file
0
archivebox/plugins/ssl/templates/thumbnail.html
Normal file
Reference in New Issue
Block a user