mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
http: increase default response header timeout to 60s, add option to customize it, schema update
This commit is contained in:
2
schemas/config/notification.d.ts
vendored
2
schemas/config/notification.d.ts
vendored
@@ -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"];
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user