Skip to content

Caddygen unable to handle imported functions #12

Description

@Smiie-2

`(logging) {
log {
format json
level warn
}
}

example.com {
import logging
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
resolvers 1.1.1.1
}
reverse_proxy :
}

ha.example.com {
import logging
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
resolvers 1.1.1.1
}
reverse_proxy :
}

adguard.example.com {
import logging
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
resolvers 1.1.1.1
}
reverse_proxy :
}
`

Great tool that I will be sure to follow! But sadly it is not handling my current compose correctly. This is the result if you import the Caddyfile above.

It reads logging as a reverse proxy, and does not include the import in the output config.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions