Skip to content

Caddy Keeps Reloading Config in v2.7.5 due to skip_host order changing #5989

@outofsight

Description

@outofsight

Had to disable --watch because caddy suddenly started to continuously reload the config.

Further investigation shown this is due to the order of skip_host continuously changing, the first two hosts in the following code.

{
    "apps": {
        "http": {
            "http_port": 80,
            "https_port": 443,
            "servers": {
                "srv0": {
                    "listen": [
                        ":443"
                    ],
                    "logs": {
                        "logger_names": {
                            "*.mydomain.biz": "",
                            "mydomain.biz": "",
                            "mysite.mydomain.biz": "log0"
                        },
                        "skip_hosts": [
                            "wpad.mydomain.biz",
                            "wpad.lan.mydomain.biz",
                            "www.lan.mydomain.biz",

This happen in a custom image based on caddy:2.7.5-builder-alpine but --with github.com/caddy-dns/cloudflare and --with github.com/caddyserver/ntlm-transport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't workingneeds info 📭Requires more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions