conf fixes

This commit is contained in:
ycc 2023-10-18 11:08:10 +02:00
parent acd9b1611c
commit 3a076bbf78
4 changed files with 7 additions and 6 deletions

View File

@ -13,6 +13,6 @@
], ],
"last_seen_online": "2023-03-07T11:57:13.378707853+01:00", "last_seen_online": "2023-03-07T11:57:13.378707853+01:00",
"api_version": "1", "api_version": "1",
"url": "https://irt.irtse.com/oc" "api_url": "https://irt.irtse.com/oc"
} }
} }

View File

@ -45,6 +45,7 @@ func main() {
models.GetConfig().ZincUrl = o.GetStringDefault("zincurl", "http://localhost:4080") models.GetConfig().ZincUrl = o.GetStringDefault("zincurl", "http://localhost:4080")
models.GetConfig().ZincLogin = o.GetStringDefault("zinclogin", "admin") models.GetConfig().ZincLogin = o.GetStringDefault("zinclogin", "admin")
models.GetConfig().ZincPassword = o.GetStringDefault("zincpassword", "admin") models.GetConfig().ZincPassword = o.GetStringDefault("zincpassword", "admin")
models.GetConfig().IdentityFile = o.GetStringDefault("identityfile", "./identity.json")
models.GetConfig().Defaultpeers = o.GetStringDefault("defaultpeers", "./peers.json") models.GetConfig().Defaultpeers = o.GetStringDefault("defaultpeers", "./peers.json")
// Normal beego init // Normal beego init

View File

@ -28,7 +28,7 @@ type Peer struct {
Email string `json:"email,omitempty"` Email string `json:"email,omitempty"`
Activity string `json:"activity,omitempty"` Activity string `json:"activity,omitempty"`
Keywords []string `json:"keywords,omitempty"` Keywords []string `json:"keywords,omitempty"`
ApiUrl string `json:"url,omitempty"` ApiUrl string `json:"api_url,omitempty"`
PublicKey string `json:"public_key,omitempty"` PublicKey string `json:"public_key,omitempty"`
// internal use // internal use
Score int64 `json:"score,omitempty"` Score int64 `json:"score,omitempty"`

View File

@ -10,7 +10,7 @@
], ],
"last_seen_online": "2023-03-07T11:57:13.378707853+01:00", "last_seen_online": "2023-03-07T11:57:13.378707853+01:00",
"api_version": "1", "api_version": "1",
"url": "https://asf.irtse.com/oc" "api_url": "http://127.0.0.1:49618/v1"
}, },
{ {
"peer_id": "a50d3697-7ede-4fe5-a385-e9d01ebc1003", "peer_id": "a50d3697-7ede-4fe5-a385-e9d01ebc1003",
@ -23,7 +23,7 @@
], ],
"last_seen_online": "2023-03-07T11:57:13.378707853+01:00", "last_seen_online": "2023-03-07T11:57:13.378707853+01:00",
"api_version": "1", "api_version": "1",
"url": "https://it.irtse.com/oc" "api_url": "https://it.irtse.com/oc"
}, },
{ {
"peer_id": "a50d3697-7ede-4fe5-a385-e9d01ebc1004", "peer_id": "a50d3697-7ede-4fe5-a385-e9d01ebc1004",
@ -36,7 +36,7 @@
], ],
"last_seen_online": "2023-03-07T11:57:13.378707853+01:00", "last_seen_online": "2023-03-07T11:57:13.378707853+01:00",
"api_version": "1", "api_version": "1",
"url": "https://impots.irtse.com/oc" "api_url": "https://impots.irtse.com/oc"
}, },
{ {
"peer_id": "a50d3697-7ede-4fe5-a385-e9d01ebc1005", "peer_id": "a50d3697-7ede-4fe5-a385-e9d01ebc1005",
@ -49,6 +49,6 @@
], ],
"last_seen_online": "2023-03-07T11:57:13.378707853+01:00", "last_seen_online": "2023-03-07T11:57:13.378707853+01:00",
"api_version": "1", "api_version": "1",
"url": "https://douanes.irtse.com/oc" "api_url": "https://douanes.irtse.com/oc"
} }
] ]