Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Loki authorization don't work via caddy outside docker network #9

@VShamray1979

Description

@VShamray1979

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions