allow user to dynamically set the decryption key for JWT tokens.

This commit is contained in:
Jason Kulatunga 2022-10-31 23:09:18 -07:00
parent f907abf10f
commit 9d56fa2896
1 changed files with 3 additions and 3 deletions

6
docker/rootfs/etc/cont-init.d/50-couchdb-init Normal file → Executable file
View File

@ -16,9 +16,9 @@ else
# create couch_peruser required system databases manually on startup
echo "couchdb ready, start creating system databases"
curl --fail -X PUT -u admin:mysecretpassword http://127.0.0.1:5432/_users
curl --fail -X PUT -u admin:mysecretpassword http://127.0.0.1:5432/_replicator
curl --fail -X PUT -u admin:mysecretpassword http://127.0.0.1:5432/_global_changes
curl --fail -X PUT -u ${FASTEN_COUCHDB_ADMIN_USERNAME}:${FASTEN_COUCHDB_ADMIN_PASSWORD} http://127.0.0.1:5432/_users
curl --fail -X PUT -u ${FASTEN_COUCHDB_ADMIN_USERNAME}:${FASTEN_COUCHDB_ADMIN_PASSWORD} http://127.0.0.1:5432/_replicator
curl --fail -X PUT -u ${FASTEN_COUCHDB_ADMIN_USERNAME}:${FASTEN_COUCHDB_ADMIN_PASSWORD} http://127.0.0.1:5432/_global_changes
echo "system databases created successfully"
# gracefully stop couchdb process