mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-25 09:33:13 +01:00
Add POSTGRESQL_SECRET as environement variable
The way like this it is possible to have the password for PostgreSQL as an environment variable
This commit is contained in:
parent
0c37742980
commit
63a72de927
@ -330,7 +330,7 @@ services:
|
|||||||
DB_HOST: postgres
|
DB_HOST: postgres
|
||||||
DB_NAME: greenlight
|
DB_NAME: greenlight
|
||||||
DB_USERNAME: postgres
|
DB_USERNAME: postgres
|
||||||
DB_PASSWORD: password
|
DB_PASSWORD: ${POSTGRESQL_SECRET}
|
||||||
{{ if isTrue .Env.DEV_MODE }}
|
{{ if isTrue .Env.DEV_MODE }}
|
||||||
BIGBLUEBUTTON_ENDPOINT: http://10.7.7.1:8080/bigbluebutton/api/
|
BIGBLUEBUTTON_ENDPOINT: http://10.7.7.1:8080/bigbluebutton/api/
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -35,6 +35,7 @@ ENABLE_GREENLIGHT=true
|
|||||||
SHARED_SECRET=w6y7nycPafjPhVz3gZdBpQhR4H4MvEQzcZzia5LT
|
SHARED_SECRET=w6y7nycPafjPhVz3gZdBpQhR4H4MvEQzcZzia5LT
|
||||||
ETHERPAD_API_KEY=NEQKi2eFXSBce4kyGjwAzMn2jeF66peNYQmyFVRr
|
ETHERPAD_API_KEY=NEQKi2eFXSBce4kyGjwAzMn2jeF66peNYQmyFVRr
|
||||||
RAILS_SECRET=cdfbae48b197805a435ab7881da31c642ac1a7d4d5c006441efa8125ae63865ce7c915c651117e0f14358cd98f5287c431929e0f796f4100b2b1c3eb5baad1b0
|
RAILS_SECRET=cdfbae48b197805a435ab7881da31c642ac1a7d4d5c006441efa8125ae63865ce7c915c651117e0f14358cd98f5287c431929e0f796f4100b2b1c3eb5baad1b0
|
||||||
|
POSTGRESQL_SECRET=4xksXUDsaqAkZFSu8HF7pFppN34yy0a9g2iSqD14
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -115,9 +115,17 @@ fi
|
|||||||
RANDOM_1=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
RANDOM_1=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
||||||
RANDOM_2=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
RANDOM_2=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
||||||
RANDOM_3=$(head /dev/urandom | tr -dc a-f0-9 | head -c 128)
|
RANDOM_3=$(head /dev/urandom | tr -dc a-f0-9 | head -c 128)
|
||||||
|
if [ ! "$greenlight" == "y" ]
|
||||||
|
then
|
||||||
|
RANDOM_4=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
|
||||||
|
fi
|
||||||
sed -i "s/SHARED_SECRET=.*/SHARED_SECRET=$RANDOM_1/" .env
|
sed -i "s/SHARED_SECRET=.*/SHARED_SECRET=$RANDOM_1/" .env
|
||||||
sed -i "s/ETHERPAD_API_KEY=.*/ETHERPAD_API_KEY=$RANDOM_2/" .env
|
sed -i "s/ETHERPAD_API_KEY=.*/ETHERPAD_API_KEY=$RANDOM_2/" .env
|
||||||
sed -i "s/RAILS_SECRET=.*/RAILS_SECRET=$RANDOM_3/" .env
|
sed -i "s/RAILS_SECRET=.*/RAILS_SECRET=$RANDOM_3/" .env
|
||||||
|
if [ ! "$greenlight" == "y" ]
|
||||||
|
then
|
||||||
|
sed -i "s/POSTGRESQL_SECRET=.*/POSTGRESQL_SECRET=$RANDOM_4/" .env
|
||||||
|
fi
|
||||||
|
|
||||||
./scripts/generate-compose
|
./scripts/generate-compose
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user