Skip to content
Discussion options

You must be logged in to vote

In case anyone comes across this via Google: since I posted this Tinyauth has moved on a lot and I've been able to successfully set up basic auth using environment variables in my Docker compose and passing the headers to the service(s) using the following Caddyfile snippet and example:

(tinyauth) {
	forward_auth xxx.xxx.x.xx:3003 {
		uri /api/auth/caddy
		copy_headers Authorization Remote-Email Remote-Name Remote-User Remote-Groups
	}

	reverse_proxy {args[0]}
}

sonarr.mydomain.com {
	import tinyauth http://xxx.xxx.x.xxx:8989
}

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@mswillia
Comment options

@steveiliop56
Comment options

@lnlyssg
Comment options

@steveiliop56
Comment options

@lnlyssg
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lnlyssg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants