It can be pretty nice.
The only issue is the configuration and process management.
A simple port 443 and port 80 port forwarding into the container is a must.
Then the configuration should be auto generated somehow in case you have more than one domain.
I was thinking about caddy api to configure but I don't have much time for this now.
Any suggestions?
A Caddyfile can be:
Code: Select all
{
email address@example.com
}
https://sn.example.org {
reverse_proxy https://172.17.0.1:443 {
transport http {
tls_insecure_skip_verify
}
}
}
https://dom1.example.org {
reverse_proxy https://172.17.0.1:443 {
transport http {
tls_insecure_skip_verify
}
}
}
https://dom2.example.org {
reverse_proxy https://172.17.0.1:443 {
transport http {
tls_insecure_skip_verify
}
}
}
https://dom1.example.com {
reverse_proxy https://172.17.0.1:443 {
transport http {
tls_insecure_skip_verify
}
}
}