mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2025-03-17 13:22:54 +01:00
feat: multiple fixes
- Define binaryTargets for schema.prisma so it works inside alpine - Log adminNpubs - Set default for config `domains`
This commit is contained in:
parent
1d4251c23e
commit
e40fafa3b5
@ -1,5 +1,6 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
binaryTargets = ["native", "linux-musl-arm64-openssl-3.0.x"]
|
||||
}
|
||||
|
||||
datasource db {
|
||||
|
@ -111,6 +111,9 @@ export async function start(opts: IOpts) {
|
||||
|
||||
if (opts.adminNpubs && opts.adminNpubs.length > 0) {
|
||||
configData.admin.npubs = opts.adminNpubs;
|
||||
console.log(`✅ adminNpubs: ${opts.adminNpubs}`)
|
||||
} else {
|
||||
console.log(`❌ no adminNpubs were provided`)
|
||||
}
|
||||
|
||||
await saveCurrentConfig(opts.config, configData);
|
||||
|
@ -62,6 +62,7 @@ const defaultConfig: IConfig = {
|
||||
logs: './nsecbunker.log',
|
||||
keys: {},
|
||||
verbose: false,
|
||||
domains: {}
|
||||
};
|
||||
|
||||
async function getCurrentConfig(config: string): Promise<IConfig> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user