TLS connection policies

1. The problem I’m having:

I don’t understand why I get this log :
server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS server_name=srv1 https_port=443
I don’t need to set any TLS connection policy.

2. Error messages and/or full log output:

server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS server_name=srv1 https_port=443

3. Caddy version:

v2.7.6

4. How I installed and ran Caddy:

a. System environment:

Docker

b. Command:

docker compose up -d

c. Service/unit/compose file:

caddy:
    container_name: "caddy"
    image: "<registry>/caddy-with-google-domains-dns:2.7.6"
    networks:
      metrics:
      proxy:
      vlan:
        ipv4_address: <ip>
    volumes:
      - "<path>/caddy/Caddyfile:/etc/caddy/Caddyfile"
      - "<path>/caddy/config:/config"
      - "<path>/caddy/data:/data"

d. My complete Caddy config:

{
        admin :2019
        email contact@domain.me
        acme_dns <provider> <token>
        servers {
               metrics
        }
}

##### EXTERNAL #####

abc.domain.me:12443 {
        reverse_proxy abc:5000
}

def.domain.me:12443 {
        @public not {
                path /admin
                path /admin/*
        }
        route {
                reverse_proxy @public def:8080
                respond 401
        }
}

##### INTERNAL #####

ghi.sub.domain.me {
        reverse_proxy ghi:3000
}

jkl.sub.domain.me {
        reverse_proxy jkl:9090
}

5. Links to relevant resources:

Answered here :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.