Loki authorization don't work via caddy outside docker network
Opened this issue · 0 comments
VShamray1979 commented
In loki/promtail-config.yaml you wrote:
# replace "loki" with server address for external hosts
- url: http://loki:3100/loki/api/v1/push
It won't work this way because in caddy/Caddyfile you use
basicauth /* {
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
}
Actually, it is don't work for localhost too. Just when loki and promtail are in the same docker network