Hello there!
I’m working on creating a website on Okteto - it has a backend and a frontend, both deployed on the following two URLs:
https://backend-sotpotatis.cloud.okteto.net/https://frontend-sotpotatis.cloud.okteto.net/
They work just fine, however, I would like to use a custom domain for both of them respectively, but I’ve hit a roadblock.
I would like to map the above-mentioned URLs the following way:
https://backend-sotpotatis.cloud.okteto.net/→https://album-of-the-day-api.albins.websitehttps://frontend-sotpotatis.cloud.okteto.net/→https://album-of-the-day.albins.website
I used these DNS settings for that:
However, when visiting the custom domain URLs, I get a 404 page.
I assumed it would be something with my docker-compose.yml, but I have tried adding all the following labels and none of them seem to work:
dev.okteto.com/auto-ingress: domaindev.okteto.com/custom-domain: truedev.okteto.com/auto-ingress: truedev.okteto.com/generate-host: true
(not at the same time, of course, I tried each of these separate)
As you might notice, I am using Cloudflare and would like to note that I tried both of their DNS modes: “Proxied” and “DNS only”.
I have read the docs and can still not solve it - what am I doing wrong?