实现登录功能

This commit is contained in:
Alex Yang
2025-11-30 11:44:26 +08:00
parent 4f0815a5f9
commit 72aa2846e5
7 changed files with 441 additions and 38 deletions

View File

@@ -42,9 +42,11 @@ func createDefaultConfig(configFile string) error {
"saveInterval": 300
},
"http": {
"port": 8081,
"port": 8080,
"host": "0.0.0.0",
"enableAPI": true
"enableAPI": true,
"username": "admin",
"password": "admin"
},
"shield": {
"localRulesFile": "data/rules.txt",