first iteraton of implementing ip-secured enpoint

This commit is contained in:
Christoph Kluge
2023-08-03 17:47:09 +02:00
parent 38f58047f2
commit 6393035e55
2 changed files with 82 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ 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"`
// Drop root permissions once .env was read and the port was taken.
User string `json:"user"`
Group string `json:"group"`