Made admin user and pass setting possible via environment variable. Confirmed working with docker as well.

This commit is contained in:
Teppo Kauppinen committed 2019-12-17 11:34:57 +02:00
1 parent 72fc49f5b5
commit ec037b5adb
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
node_modules
npm-debug.log
.idea
.github
.git
+2 -2
View File
@@ -18,8 +18,8 @@ module.exports = {
{
"id": 1,
"displayName": "Administrator",
"username": "admin",
"password": "admin",
"username": process.env.ADMIN_USER || "admin",
"password": process.env.ADMIN_PASS || "admin",
"permissions": {
"isAdmin": true,
"dashboard": {