mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
feat: enable auth for local requests to Corrosion API (resolves #110)
This commit is contained in:
1 parent
26951773d1
commit
9424daff28
6 files changed
+138
-27
No files matched your search
@@ -37,7 +37,12 @@ type GossipConfig struct {
|
||||
}
|
||||
|
||||
type APIConfig struct {
|
||||
Addr netip.AddrPort `toml:"addr"`
|
||||
Addr netip.AddrPort `toml:"addr"`
|
||||
Authz APIAuthzConfig `toml:"authz"`
|
||||
}
|
||||
|
||||
type APIAuthzConfig struct {
|
||||
BearerToken string `toml:"bearer-token"`
|
||||
}
|
||||
|
||||
type AdminConfig struct {
|
||||
|
||||
Reference in new issue
Block a user