mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
save
This commit is contained in:
parent
d78312fad8
commit
50d374d9f6
8 changed files with 1735 additions and 21 deletions
|
@ -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
1711
server/names.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue