🎨 增加 Go 后端

This commit is contained in:
江西小徐
2024-04-07 11:08:05 +08:00
parent 04c82ab25d
commit 61275be2bf
165 changed files with 7043 additions and 3599 deletions
+47
View File
@@ -0,0 +1,47 @@
[
{
"label": "本地接口",
"name": "nuxt",
"order": 0,
"show": true,
"disabled": false,
"iName": "本地 DNS",
"flag": "material-symbols:dns-outline"
},
{
"label": "Google",
"name": "google",
"order": 1,
"show": true,
"disabled": false,
"iName": "Google",
"flag": "flat-color-icons:google"
},
{
"label": "AliYun",
"name": "aliyun",
"order": 2,
"show": true,
"disabled": false,
"iName": "AliYun",
"flag": "ant-design:aliyun-outlined"
},
{
"label": "Tencent",
"name": "tencent",
"order": 3,
"show": true,
"disabled": false,
"iName": "Tencent",
"flag": "emojione:cloud"
},
{
"label": "Cloudflare",
"name": "cloudflare",
"order": 4,
"show": true,
"disabled": false,
"iName": "CloudFlare",
"flag": "skill-icons:cloudflare-light"
}
]
+18
View File
@@ -0,0 +1,18 @@
[
{
"label": "本地接口",
"name": "nuxt",
"order": 0,
"show": false,
"disabled": true,
"iName": "本地 DNS",
"flag": "material-symbols:dns-outline"
},
{
"label": "TIAN.HU",
"name": "tianhu",
"order": 1,
"show": true,
"disabled": false
}
]
+23
View File
@@ -0,0 +1,23 @@
[
{
"label": "本地接口",
"name": "nuxt",
"order": 0,
"show": true,
"disabled": false
},
{
"label": "WHO.CX",
"name": "whocx",
"order": 1,
"show": false,
"disabled": true
},
{
"label": "TIAN.HU",
"name": "tianhu",
"order": 2,
"show": true,
"disabled": false
}
]
+34
View File
@@ -0,0 +1,34 @@
env: local
http:
port: 8000
#网站配置
login:
username: admin
password: 123456
siteConfig:
logoLeftText: NuxtLeftLogo
logoRightText: NuxtRightLogo
defaultSelectOptions:
- label: Whois
value: whois
- label: Dns
value: dns
- label: Domain
value: domain
whoisSeverApi:
- whocx: https://who.cx/api/whois_extract
- tianhu: https://api.tian.hu/whois.php
dnsSeverApi:
- google: https://dns.google/resolve
- cloudflare: http://1.1.1.1/dns-query
- aliyun: https://223.5.5.5/resolve
- tencent: https://doh.pub/dns-query
log:
log_level: debug
encoding: console # json or console
log_file_name: "./storage/logs/server.log"
max_backups: 30 # 日志文件最多保存多少个备份
max_age: 7 # 文件最多保存多少天
max_size: 1024 # 每个日志文件保存的最大尺寸 单位:M
compress: true # 是否压缩
+27
View File
@@ -0,0 +1,27 @@
env: local
http:
port: 8000
security:
api_sign:
app_key: 123456
app_security: 123456
jwt:
key: 1234
data:
mysql:
user: root:123456@tcp(127.0.0.1:3380)/user?charset=utf8mb4&parseTime=True&loc=Local
redis:
addr: 127.0.0.1:6350
password: ""
db: 0
read_timeout: 0.2s
write_timeout: 0.2s
log:
log_level: info
encoding: json # json or console
log_file_name: "./storage/logs/server.log"
max_backups: 30 # 日志文件最多保存多少个备份
max_age: 7 # 文件最多保存多少天
max_size: 1024 # 每个日志文件保存的最大尺寸 单位:M
compress: true # 是否压缩