Skip to content

Commit

Permalink
Use env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gamab committed Oct 25, 2023
1 parent 3ce4a72 commit fa729e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 1 addition & 5 deletions examples/app-with-on-behalf-of-auth/.config/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@ ENV GF_DEFAULT_APP_MODE "development"

# Inject livereload script into grafana index.html
USER root
RUN sed -i 's/<\/body><\/html>/<script src=\"http:\/\/localhost:35729\/livereload.js\"><\/script><\/body><\/html>/g' /usr/share/grafana/public/views/index.html

# Inject [extended_jwt] config in ini file
COPY extended_jwt.ini /tmp/extended_jwt.ini
RUN cat /tmp/extended_jwt.ini >> /etc/grafana/grafana.ini
RUN sed -i 's/<\/body><\/html>/<script src=\"http:\/\/localhost:35729\/livereload.js\"><\/script><\/body><\/html>/g' /usr/share/grafana/public/views/index.html
5 changes: 0 additions & 5 deletions examples/app-with-on-behalf-of-auth/.config/extended_jwt.ini

This file was deleted.

3 changes: 3 additions & 0 deletions examples/app-with-on-behalf-of-auth/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
- 3000:3000/tcp
environment:
- GF_FEATURE_TOGGLES_ENABLE=externalServiceAuth
- GF_AUTH_EXTENDED_JWT_ENABLED=true
- GF_AUTH_EXTENDED_JWT_EXPECT_AUDIENCE=http://localhost:3000/
- GF_AUTH_EXTENDED_JWT_EXPECT_ISSUER=http://localhost:3000/
volumes:
- ./dist:/var/lib/grafana/plugins/grafana-appwithonbehalfofauth-app
- ./provisioning:/etc/grafana/provisioning

0 comments on commit fa729e2

Please sign in to comment.