mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-22 20:41:40 +02:00
Add secured subrouter for REST API
Rename IP filter option Add array helper in util
This commit is contained in:
@@ -70,8 +70,8 @@ type ProgramConfig struct {
|
||||
// Address where the http (or https) server will listen on (for example: 'localhost:80').
|
||||
Addr string `json:"addr"`
|
||||
|
||||
// Addresses from which the /secured/* API endpoints can be reached
|
||||
ApiAllowedAddrs []string `json:"apiAllowedAddrs"`
|
||||
// Addresses from which the /api/secured/* API endpoints can be reached
|
||||
ApiAllowedIPs []string `json:"apiAllowedIPs"`
|
||||
|
||||
// Drop root permissions once .env was read and the port was taken.
|
||||
User string `json:"user"`
|
||||
|
Reference in New Issue
Block a user