Files
it-ansible/docker_compose_applications/reverse-proxy/Caddyfile

38 lines
643 B
Caddyfile

(oauth2_protect) {
handle /oauth2/* {
reverse_proxy oauth2-proxy:4180
}
handle {
forward_auth oauth2-proxy:4180 {
uri /oauth2/auth
copy_headers Authorization
@bad status 4xx
handle_response @bad {
redir https://{args.0}/oauth2/start
}
}
reverse_proxy {args.1}
}
}
pseudo.cortex.consider-funding.de {
import oauth2_protect pseudo.cortex.consider-funding.de http://10.20.0.2:5000
}
pdf.consider-it.de {
import oauth2_protect pdf.consider-it.de http://stirling-pdf:8080
}
n8n.consider-funding.de {
reverse_proxy n8n:5678 {
flush_interval -1
}
}
metabase.consider-it.de {
reverse_proxy metabase:3000
}