mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2025-08-09 04:41:43 +02: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:
@@ -1,5 +1,6 @@
|
|||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
|
binaryTargets = ["native", "linux-musl-arm64-openssl-3.0.x"]
|
||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
|
@@ -111,6 +111,9 @@ export async function start(opts: IOpts) {
|
|||||||
|
|
||||||
if (opts.adminNpubs && opts.adminNpubs.length > 0) {
|
if (opts.adminNpubs && opts.adminNpubs.length > 0) {
|
||||||
configData.admin.npubs = opts.adminNpubs;
|
configData.admin.npubs = opts.adminNpubs;
|
||||||
|
console.log(`✅ adminNpubs: ${opts.adminNpubs}`)
|
||||||
|
} else {
|
||||||
|
console.log(`❌ no adminNpubs were provided`)
|
||||||
}
|
}
|
||||||
|
|
||||||
await saveCurrentConfig(opts.config, configData);
|
await saveCurrentConfig(opts.config, configData);
|
||||||
|
@@ -62,6 +62,7 @@ const defaultConfig: IConfig = {
|
|||||||
logs: './nsecbunker.log',
|
logs: './nsecbunker.log',
|
||||||
keys: {},
|
keys: {},
|
||||||
verbose: false,
|
verbose: false,
|
||||||
|
domains: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
async function getCurrentConfig(config: string): Promise<IConfig> {
|
async function getCurrentConfig(config: string): Promise<IConfig> {
|
||||||
|
Reference in New Issue
Block a user