mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat: add auth, RBAC, admin panel, and JWT-protected routes
This commit is contained in:
@@ -18,3 +18,13 @@ export const authConfig = registerAs('auth', () => ({
|
||||
export const storageConfig = registerAs('storage', () => ({
|
||||
booksPath: process.env.BOOKS_PATH ?? '/data/books',
|
||||
}));
|
||||
|
||||
export const mailerConfig = registerAs('mailer', () => ({
|
||||
host: process.env.SMTP_HOST,
|
||||
port: parseInt(process.env.SMTP_PORT ?? '587', 10),
|
||||
secure: process.env.SMTP_SECURE === 'true',
|
||||
user: process.env.SMTP_USER,
|
||||
pass: process.env.SMTP_PASS,
|
||||
from: process.env.SMTP_FROM ?? 'noreply@projectx.local',
|
||||
appUrl: process.env.APP_URL ?? 'http://localhost:5173',
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user