Skip to content
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

Removing invalid block: unrecognized directive: Did you mean to define a second site? If so, you must use curly braces around each site to separate their configurations. #682

Open
ADV1K opened this issue Dec 27, 2024 · 1 comment

Comments

@ADV1K
Copy link

ADV1K commented Dec 27, 2024

[ERROR]  Removing invalid block: Caddyfile:47: unrecognized directive: whoami.local
Did you mean to define a second site? If so, you must use curly braces around each site to separate their configurations.
whoami.local {
        reverse_proxy 172.27.0.11:8080
}

compose.yaml

services:
  whoami:
    image: traefik/whoami
    container_name: whoami
    networks:
      - internal
    labels:
      caddy: whoami.local
      caddy.reverse_proxy: "{{upstreams 8080}}"

  caddy:
    image: lucaslorentz/caddy-docker-proxy:ci-alpine
    container_name: caddy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - caddy-data:/data
    networks:
      - internal

volumes:
  caddy-data:
    external: true

networks:
  internal:
    external: true
@ADV1K ADV1K changed the title [ERROR] Removing invalid block: Caddyfile:70: unrecognized directive: speed.home.advik.one\nDid you mean to define a second site? If so, you must use curly braces around each site to separate their configurations.\nspeed.home.advik.one {\n\treverse_proxy 172.27.0.11:80\n} Removing invalid block: unrecognized directive: Did you mean to define a second site? If so, you must use curly braces around each site to separate their configurations. Dec 27, 2024
@ADV1K
Copy link
Author

ADV1K commented Dec 27, 2024

this seems to happen when i have too many containers running apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant