implement node settings

This commit is contained in:
ghost 2024-01-01 13:10:38 +02:00
parent 6bc9b53d24
commit 7e3f7c6df0
6 changed files with 232 additions and 12 deletions

86
config.json Normal file
View file

@ -0,0 +1,86 @@
{
"net":
{
"dig":
{
"response":
{
"headers":
{
"Access-Control-Allow-Origin":"*"
}
},
"request":
{
"name":{
"regex":
[
"/\\.ygg$/i",
"/\\.btn$/i",
"/\\.anon$/i",
"/\\.conf$/i",
"/\\.index$/i",
"/\\.index$/i",
"/\\.merch$/i",
"/\\.mirror$/i",
"/\\.mob$/i",
"/\\.screen$/i",
"/\\.srv$/i"
]
},
"record":{
"regex":
[
"/^A$/i",
"/^AAAA$/i",
"/^SRV$/i"
]
},
"records":{
"regex":
[
"/^A$/i",
"/^AAAA$/i",
"/^SRV$/i"
]
}
}
},
"socket":
{
"response":
{
"headers":
{
"Access-Control-Allow-Origin":"*"
}
},
"request":
{
"port":{
"regex":
[
"/^[\\d]{2,6}$/"
]
},
"host":{
"regex":
[
"/^0{0,1}[2-3][a-f0-9]{0,2}:/",
"/\\.ygg$/i",
"/\\.btn$/i",
"/\\.anon$/i",
"/\\.conf$/i",
"/\\.index$/i",
"/\\.index$/i",
"/\\.merch$/i",
"/\\.mirror$/i",
"/\\.mob$/i",
"/\\.screen$/i",
"/\\.srv$/i"
]
}
}
}
}
}