mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
Generate a grafana password during bootstrap script
This commit is contained in:
parent
e16252842a
commit
c4d3bde106
@ -10,8 +10,10 @@ PROXY_DASH_PORT=81
|
||||
PROXY_MYSQL_PASS=%PROXY_MYSQL_PASS%
|
||||
PROXY_MYSQL_PASS_ROOT=%PROXY_MYSQL_PASS_ROOT%
|
||||
|
||||
# grafana
|
||||
# Grafana
|
||||
GRAFANA_DB_PASSWORD=%GRAFANA_DB_PASSWORD%
|
||||
GF_SECURITY_ADMIN_USERNAME=admin
|
||||
GF_SECURITY_ADMIN_PASSWORD=%GF_SECURITY_ADMIN_PASSWORD%
|
||||
|
||||
# Alliance Auth Environment Config
|
||||
AA_SITENAME=%AA_SITENAME%
|
||||
|
@ -142,6 +142,8 @@ services:
|
||||
- grafana-data:/var/lib/grafana
|
||||
environment:
|
||||
GF_INSTALL_PLUGINS: grafana-piechart-panel,grafana-clock-panel,grafana-simple-json-datasource
|
||||
GF_SECURITY_ADMIN_USERNAME: ${GF_SECURITY_ADMIN_USERNAME}
|
||||
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
|
||||
GF_AUTH_DATABASE_PASSWORD: ${GRAFANA_DB_PASSWORD}
|
||||
logging:
|
||||
driver: "json-file"
|
||||
|
@ -11,6 +11,7 @@ cp .env.example .env
|
||||
sed -i.bak 's/%PROXY_MYSQL_PASS%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
sed -i.bak 's/%PROXY_MYSQL_PASS_ROOT%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
sed -i.bak 's/%GRAFANA_DB_PASSWORD%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
sed -i.bak 's/%GF_SECURITY_ADMIN_PASSWORD%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
sed -i.bak 's/%AA_SECRET_KEY%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
sed -i.bak 's/%AA_DB_PASSWORD%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
sed -i.bak 's/%AA_DB_ROOT_PASSWORD%/'"$(openssl rand -hex 24)"'/g' .env
|
||||
|
Loading…
x
Reference in New Issue
Block a user