-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site Domains #252
Comments
I was looking for the same thing. Let's see! |
@mtiller the way you imagine this works is the way it should work. Here's what we have for Something's either broken we have a bug in the UI configuration. Can you try enabling "Automatic SSL" ? I think you're on K8s so you've probably disabled automatic SSL via environment variables, so enabling it in the UI won't generate the certificates, but I have a feeling the JSON config saved in DB is missing a |
Well, I don't have an "Automatic SSL" for the reasons you explained. I definitely don't want it generating TLS certificates for me since that is already managed by my ingress. But, this is a slight issue because as it stands right now I've created an enhanced helm chart (enhanced beyond what I committed) that allows me to specify the sites and mappings in the But what I don't quite understand is that I don't see any mappings in the What I've done (up to this point) is actually put all this into the Helm chart and it actually works quite well. I'd like to be able to manage all of this in the meli UI. But part of the problem here is that I'd still need to have a custom ingress resource that was aware of all these extra domains. So I don't see a way to contain it all in the Meli UI for my particular case. |
Let me clarify one point. There is not "Automatic SSL" in the UI for me. So I can't turn it on. |
You should be able to manage this is the meli UI, this is exactly what the domains part was meant to do and should do. It should have added a line in the Caddy config for that specific site. Then, when caddy gets a request, it matches the domain name against the config and serves the right site. I'll have a look because that's supposed to work. |
In the UI for a site, it allows you to add domains. But it isn't clear what these do. I was hoping that they would adjust the reverse proxy configuration for
caddy
so that the given domain would get routed properly.For example. Imagine I'm running
meli
atmeli.example.com
. If I create a site calledfoobar
, then it is clear that the underlyingcaddy
configuration will routefoobar.meli.example.com
to the correct handler. But if I add the domainsome.other.org
to myfoobar
site, what I was hoping was that if I configured my DNS to routesome.other.org
to the same server that was handlingfoobar.meli.example.com
that it would serve the same content. After all, this is just a virtual host configuration and I don't see any technical reason why themeli
server couldn't actually handle traffic targeting multiple domains.But when I configure it this way and then
GET
thecaddy
configuration fromlocalhost:2019/config
, I don't seesome.other.org
in there at all. Which tells me that whatever the "domains" associated with a site do, they don't impact any of the proxying going on.Am I right? It would so nice if
meli
could be configured to handle traffic intended for many different domains all from a single server. But am I correct that, at the moment at least, all the traffic has to be rooted to a single domain?The text was updated successfully, but these errors were encountered: