Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VShamray1979 opened this issue Jan 2, 2023 · 0 comments
Open

Comments

@VShamray1979
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant