http: increase default response header timeout to 60s, add option to customize it, schema update

This commit is contained in:
yusing
2025-01-30 00:41:03 +08:00
parent d9b6b82f07
commit dfc634a362
18 changed files with 96 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ export interface GotifyConfig extends NotificationConfig {
provider: "gotify";
token: string;
}
export declare const WEBHOOK_TEMPLATES: readonly ["discord"];
export declare const WEBHOOK_TEMPLATES: readonly ["", "discord"];
export declare const WEBHOOK_METHODS: readonly ["POST", "GET", "PUT"];
export declare const WEBHOOK_MIME_TYPES: readonly ["application/json", "application/x-www-form-urlencoded", "text/plain"];
export declare const WEBHOOK_COLOR_MODES: readonly ["hex", "dec"];

View File

@@ -1,5 +1,5 @@
export const NOTIFICATION_PROVIDERS = ["webhook", "gotify"];
export const WEBHOOK_TEMPLATES = ["discord"];
export const WEBHOOK_TEMPLATES = ["", "discord"];
export const WEBHOOK_METHODS = ["POST", "GET", "PUT"];
export const WEBHOOK_MIME_TYPES = [
"application/json",

View File

@@ -17,7 +17,7 @@ export interface GotifyConfig extends NotificationConfig {
token: string;
}
export const WEBHOOK_TEMPLATES = ["discord"] as const;
export const WEBHOOK_TEMPLATES = ["", "discord"] as const;
export const WEBHOOK_METHODS = ["POST", "GET", "PUT"] as const;
export const WEBHOOK_MIME_TYPES = [
"application/json",