wemake-services / caddy-gen

Automated Caddy reverse proxy for docker containers
https://hub.docker.com/r/wemakeservices/caddy-gen
MIT License
250 stars 24 forks source link

https redirect #32

Closed neoromantique closed 4 years ago

neoromantique commented 4 years ago

I would like to add a way to redirect http requests to https uri without utilising a different container, is it possible to add an option for this?

sobolevn commented 4 years ago

@neoromantique sure! Isn't it on by default? PRs are more than welcome!

neoromantique commented 4 years ago

@neoromantique sure! Isn't it on by default? PRs are more than welcome!

I've done it now by simply providing my own caddy template file as volume, would you want a PR with env var for this functionality?

sobolevn commented 4 years ago

@neoromantique sure! Thanks!

neoromantique commented 4 years ago

This is no longer relevant as this is now default behavior in caddy.