domolo icon indicating copy to clipboard operation
domolo copied to clipboard

Loki authorization don't work via caddy outside docker network

Open VShamray1979 opened this issue 1 year ago • 0 comments

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

VShamray1979 avatar Jan 02 '23 16:01 VShamray1979