mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add bait mode, fix bugs
This commit is contained in:
parent
d633116571
commit
480fcb363f
14 changed files with 1627 additions and 236 deletions
|
|
@ -55,6 +55,12 @@ export interface ConfigType {
|
|||
bind_port: string;
|
||||
banned_ips: string[];
|
||||
banned_user_agents: string[];
|
||||
bait: {
|
||||
enabled: boolean;
|
||||
send_file?: string;
|
||||
bait_ips: string[];
|
||||
bait_user_agents: string[];
|
||||
};
|
||||
};
|
||||
|
||||
instance: {
|
||||
|
|
@ -181,6 +187,12 @@ export const configDefaults: ConfigType = {
|
|||
base_url: "http://lysand.localhost:8000",
|
||||
banned_ips: [],
|
||||
banned_user_agents: [],
|
||||
bait: {
|
||||
enabled: false,
|
||||
send_file: "",
|
||||
bait_ips: [],
|
||||
bait_user_agents: [],
|
||||
},
|
||||
},
|
||||
database: {
|
||||
host: "localhost",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue