Skip to content

Commit

Permalink
grafana: support DATABASE_SSL_MODE (#3498)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmh authored and JakobLichterfeld committed Feb 9, 2024
1 parent 2d51501 commit 512abe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ ENV GF_ANALYTICS_REPORTING_ENABLED=false \
GF_SECURITY_DISABLE_GRAVATAR=true \
GF_SECURITY_ANGULAR_SUPPORT_ENABLED=false \
GF_USERS_ALLOW_SIGN_UP=false \
DATABASE_PORT=5432
DATABASE_PORT=5432 \
DATABASE_SSL_MODE=disable

USER grafana

Expand Down
5 changes: 2 additions & 3 deletions grafana/datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ datasources:
url: $DATABASE_HOST:$DATABASE_PORT
user: $DATABASE_USER
database: $DATABASE_NAME
password: ""
access: proxy
basicAuth: false
withCredentials: false
isDefault: true
secureJsonData:
password: $DATABASE_PASS
jsonData:
postgresVersion: 1000
sslmode: disable
postgresVersion: 1500
sslmode: $DATABASE_SSL_MODE
version: 1
editable: true

0 comments on commit 512abe5

Please sign in to comment.