review and move api endpoints secured check

This commit is contained in:
Christoph Kluge
2025-04-09 16:00:27 +02:00
parent a6784b5549
commit fb6a4c3b87
3 changed files with 91 additions and 89 deletions

View File

@@ -100,9 +100,12 @@ type ProgramConfig struct {
// Address where the http (or https) server will listen on (for example: 'localhost:80').
Addr string `json:"addr"`
// Addresses from which secured API endpoints can be reached
// Addresses from which secured admin API endpoints can be reached, can be wildcard "*"
ApiAllowedIPs []string `json:"apiAllowedIPs"`
// Addresses from which secured admin API endpoints can be reached, can be wildcard "*"
UserApiAllowedIPs []string `json:"userApiAllowedIPs"`
// Drop root permissions once .env was read and the port was taken.
User string `json:"user"`
Group string `json:"group"`