feat: allow or block an ip/range of ips using labels

This commit is contained in:
Stavros
2025-06-25 17:18:52 +03:00
parent f3ec4baf3c
commit fae5e7919a
8 changed files with 129 additions and 3 deletions

View File

@@ -105,6 +105,12 @@ type BasicLabels struct {
Password string
}
// IP labels for a tinyauth protected container
type IPLabels struct {
Allow []string
Block []string
}
// Labels is a struct that contains the labels for a tinyauth protected container
type Labels struct {
Users string
@@ -113,4 +119,5 @@ type Labels struct {
Domain string
Basic BasicLabels
OAuth OAuthLabels
IP IPLabels
}