feat(hook): add AllowInsecure option for TLS verification
* Introduced AllowInsecure field in Hook configuration to skip TLS certificate verification. * Updated database schema and models to support the new field. * Modified HTTP client behavior based on AllowInsecure setting.
This commit is contained in:
@@ -141,8 +141,10 @@ func createTablesSQLite(ctx context.Context) error {
|
||||
headers TEXT,
|
||||
events TEXT,
|
||||
active BOOLEAN NOT NULL DEFAULT 1,
|
||||
allow_insecure BOOLEAN NOT NULL DEFAULT 0,
|
||||
retry_count INTEGER NOT NULL DEFAULT 3,
|
||||
timeout_seconds INTEGER NOT NULL DEFAULT 30,
|
||||
timeout INTEGER NOT NULL DEFAULT 30,
|
||||
secret VARCHAR(255),
|
||||
description TEXT,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
Reference in New Issue
Block a user