Basic setup to protect loki with basic authentication using Nginx
Last active
December 31, 2023 15:33
-
-
Save laurentbel/391e57e601f7d1c81d2d4e74879383d7 to your computer and use it in GitHub Desktop.
Loki Nginx basic authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
loki: | |
image: grafana/loki:2.2.0 | |
command: -config.file=/etc/loki/local-config.yaml | |
networks: | |
- loki | |
nginx: | |
image: laurentbel/nginx-basic-auth | |
ports: | |
- "80:80" | |
depends_on: | |
- loki | |
environment: | |
- FORWARD_HOST=loki | |
- FORWARD_PORT=3100 | |
- BASIC_USERNAME=john.doe | |
- BASIC_PASSWORD=myp@ssword! | |
networks: | |
- loki | |
networks: | |
loki: |
I left auth_enable = true which is the default value in Loki’s config file.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
did you activate the auth_enable: true in the loki/local-config.yaml?