log ditto nsec when container created

This commit is contained in:
Siddharth Singh 2024-08-26 05:48:44 +05:30
parent ebc27e8297
commit 24ddb5f21c
No known key found for this signature in database

View file

@ -13,6 +13,7 @@ function missingEnv(what: string, v: string) {
if (import.meta.main) { if (import.meta.main) {
const key = generateSecretKey(); const key = generateSecretKey();
const DITTO_NSEC = nip19.nsecEncode(key); const DITTO_NSEC = nip19.nsecEncode(key);
console.log('DITTO_NSEC: ', DITTO_NSEC);
const LOCAL_DOMAIN = Deno.env.get('DITTO_DOMAIN'); const LOCAL_DOMAIN = Deno.env.get('DITTO_DOMAIN');
if (!LOCAL_DOMAIN) missingEnv('Domain value', 'DITTO_DOMAIN'); if (!LOCAL_DOMAIN) missingEnv('Domain value', 'DITTO_DOMAIN');