feat: Allow specifying custom TLS certificate, key and CA

This commit is contained in:
Jesse Wierzbinski 2024-04-17 15:53:42 -10:00
parent a37e8e92c5
commit 633e92d4e9
No known key found for this signature in database
6 changed files with 63 additions and 20 deletions

View file

@ -105,6 +105,23 @@ export interface Config {
banned_user_agents: string[];
tls: {
/** @default false */
enabled: boolean;
/** @default "" */
key: string;
/** @default "" */
cert: string;
/** @default "" */
passphrase: string;
/** @default "" */
ca: string;
};
bait: {
/** @default false */
enabled: boolean;
@ -437,6 +454,13 @@ export const defaultConfig: Config = {
bind_port: "8080",
banned_ips: [],
banned_user_agents: [],
tls: {
enabled: false,
key: "",
cert: "",
passphrase: "",
ca: "",
},
bait: {
enabled: false,
send_file: "",