Skip to content

Commit

Permalink
redis2yaml: handle forwardauth middleware (#40)
Browse files Browse the repository at this point in the history
Before the fix, the `insecureSkipVerify` parameter was ignored.
Raised error:
 Error while building configuration (for the first time): /etc/traefik/configs/mail1-rspamd.yml: tls cannot be a standalone element
  • Loading branch information
gsanchietti committed Sep 4, 2023
1 parent c35c1c7 commit 8f570c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imageroot/bin/redis2yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ for kv in rdb.scan_iter(f'{prefix}http/*'):
middlewares[tmp[1]][tmp[2]][tmp[3]] = list()
middlewares[tmp[1]][tmp[2]][tmp[3]].append(value)
else:
middlewares[tmp[1]][tmp[2]][tmp[3]] = value
if len(tmp) > 4 and tmp[4] == "insecureSkipVerify":
middlewares[tmp[1]][tmp[2]][tmp[3]][tmp[4]] = (value == 'True')
else:
middlewares[tmp[1]][tmp[2]][tmp[3]] = value
elif tmp[0] == "services":
if tmp[1] not in services:
services[tmp[1]] = { "loadBalancer": { "servers": list() } }
Expand Down

0 comments on commit 8f570c4

Please sign in to comment.