Skip to content

Commit 8cce605

Browse files
committed
test: cover proxy auth config validation
1 parent aedfd2d commit 8cce605

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

config/validator_test.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,28 @@ models:
9898
storages:
9999
local:
100100
type: local
101+
`,
102+
},
103+
{
104+
name: "config with proxy auth web settings",
105+
config: `
106+
web:
107+
auth_mode: proxy
108+
proxy_auth:
109+
trusted_proxies:
110+
- 127.0.0.1
111+
- 10.0.0.0/8
112+
user_header: Remote-User
113+
group_header: Remote-Groups
114+
allowed_users:
115+
- alice
116+
allowed_groups:
117+
- admins
118+
models:
119+
my_backup:
120+
storages:
121+
local:
122+
type: local
101123
`,
102124
},
103125
{

0 commit comments

Comments
 (0)