mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 01:01:39 +01:00
allow custom pocketbase login data
This commit is contained in:
@@ -9,6 +9,11 @@ services:
|
||||
volumes:
|
||||
- ./pb/data:/pb/pb_data
|
||||
restart: no
|
||||
environment:
|
||||
# These are only needed at first start. These are the values used to login to the admin panel.
|
||||
# If left empty the email will be set to test@example.com and the password to 1234567890
|
||||
#- EMAIL=
|
||||
#- PASSWORD=
|
||||
bot:
|
||||
depends_on:
|
||||
pocketbase:
|
||||
|
||||
@@ -5,6 +5,9 @@ migrate(app => {
|
||||
|
||||
let record = new Record(superusers)
|
||||
|
||||
const email = process.env.EMAIL ?? 'text@example.com'
|
||||
const password = process.env.PASSWORD ?? '1234567890'
|
||||
|
||||
// This should be communicated to the user, or be set by the user.
|
||||
record.set("email", "test@example.com")
|
||||
record.set("password", "1234567890")
|
||||
Reference in New Issue
Block a user