Samagra-Development / devops

0 stars 0 forks source link

Caddy (Automtically route all subdomains to a specific IP or set of IPs) - relevant for k8s #41

Open singhalkarun opened 4 months ago

singhalkarun commented 4 months ago

Caddy needs a services which tells caddy whether to or not to allow it generate on demand cert for a domain.

References:

Syntax for routing all sevices to same IP

*.domain.name {
  tls {
        on_demand
    }

  reverse_proxy ip:port
}

Tested for K8S. Code to be structured and pushed. Requires a service which authorizes on demand tls requests with 200 OK. Designed service using FastAPI.