Courriels - gabarit HTML brande (logo, couleur #b71c1c, bouton, mention ne pas repondre) dans backend/src/lib/mail-template.ts ; repli texte conserve - MailMessage gagne un champ html optionnel - MAIL_LOGO_URL (defaut PUBLIC_ORIGIN/logo.png) + logo.png servi par le front - notification au nouvel utilisateur a la creation du compte admin - forgot-password, email-change et reset-password passent par le gabarit Espace disque - diskUsage() (statfs) dans storage.ts (total/free/available) - upload et avatar refuses si le disque est plein (507 INSUFFICIENT_STORAGE) - quota d'emplacement borne par la capacite reelle du disque - statistiques disque exposees aux endpoints admin Exploitation - make purge-logs : vide le journal d'audit - make reset : cloud vierge en conservant les administrateurs - docker/reset-cloud.sql ; documentation deployment.md et api.md
58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
export {
|
|
loadConfig,
|
|
loadDbConfig,
|
|
ConfigError,
|
|
type Config,
|
|
type DbConfig,
|
|
} from "./config.js";
|
|
export { Db } from "./db.js";
|
|
export { AppError, toSafeError, type SafeError } from "./errors.js";
|
|
export {
|
|
createApp,
|
|
createLogger,
|
|
clientIp,
|
|
type App,
|
|
type AppEnv,
|
|
type AppOptions,
|
|
type Logger,
|
|
type RouteDeps,
|
|
} from "./http.js";
|
|
export {
|
|
attachUser,
|
|
clearSessionCookie,
|
|
createSession,
|
|
currentUser,
|
|
isHttpsRequest,
|
|
hashPassword,
|
|
requireAuth,
|
|
requireRole,
|
|
purgeExpiredSessions,
|
|
revokeSession,
|
|
SESSION_COOKIE,
|
|
setSessionCookie,
|
|
sha256,
|
|
verifyPassword,
|
|
type SessionUser,
|
|
} from "./auth.js";
|
|
export {
|
|
listMigrations,
|
|
runMigrations,
|
|
assertNoDrift,
|
|
type MigrationResult,
|
|
} from "./migrate.js";
|
|
export { createMailer, link, type Mailer, type MailMessage } from "./mail.js";
|
|
export {
|
|
branding,
|
|
renderMail,
|
|
type Branding,
|
|
type MailContent,
|
|
type RenderedMail,
|
|
} from "./mail-template.js";
|
|
export { createRateLimiter, rateLimitKey, type RateLimiter } from "./ratelimit.js";
|
|
export {
|
|
prepareService,
|
|
startService,
|
|
type Service,
|
|
type ServiceOptions,
|
|
} from "./service.js";
|