This commit is contained in:
Milo Schwartz 2024-10-26 17:01:34 -04:00
parent d78312fad8
commit 50d374d9f6
No known key found for this signature in database
8 changed files with 1735 additions and 21 deletions

View file

@ -14,7 +14,6 @@ const portSchema = z.number().positive().gt(0).lte(65535);
const environmentSchema = z.object({
app: z.object({
name: z.string(),
base_url: z.string().url(),
log_level: z.enum(["debug", "info", "warn", "error"]),
save_logs: z.boolean(),
@ -129,8 +128,7 @@ process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL = new URL(
"/api/v1",
`http://${parsedConfig.data.server.internal_hostname}:${parsedConfig.data.server.external_port}`
).href;
process.env.NEXT_PUBLIC_APP_NAME = parsedConfig.data.app.name;
process.env.NEXT_PUBLIC_FLAGS_EMAIL_VERIFICATION_REQUIRED = parsedConfig.data
process.env.PUBLIC_FLAGS_EMAIL_VERIFICATION_REQUIRED = parsedConfig.data
.flags?.require_email_verification
? "true"
: "false";

1711
server/names.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -65,7 +65,7 @@ export async function requestTotpSecret(
const hex = crypto.getRandomValues(new Uint8Array(20));
const secret = encodeHex(hex);
const uri = createTOTPKeyURI(config.app.name, user.email, hex);
const uri = createTOTPKeyURI("Pangolin", user.email, hex);
await db
.update(users)