mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat: ✨ Allow specifying custom TLS certificate, key and CA
This commit is contained in:
parent
a37e8e92c5
commit
633e92d4e9
6 changed files with 63 additions and 20 deletions
|
|
@ -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: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue