forked from geolba/tethys.backend
Arno Kaimbacher
b06ccae603
- mail_settings_controller for setting smtp settings - added view ror rjecting dataset for editor - added new model AppConfig for stroing appwide config values - better validate_chesum.ts command with process chunking - added vue3 apps 'BasicSettings' like email, profile settings - started with 2 multilingual capabilities - npm updates
50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
/*
|
|
|--------------------------------------------------------------------------
|
|
| Validating Environment Variables
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| In this file we define the rules for validating environment variables.
|
|
| By performing validation we ensure that your application is running in
|
|
| a stable environment with correct configuration values.
|
|
|
|
|
| This file is read automatically by the framework during the boot lifecycle
|
|
| and hence do not rename or move this file to a different location.
|
|
|
|
|
*/
|
|
import { Env } from "@adonisjs/core/env"
|
|
|
|
export default await Env.create(new URL("../", import.meta.url), {
|
|
HOST: Env.schema.string({ format: 'host' }),
|
|
PORT: Env.schema.number(),
|
|
APP_KEY: Env.schema.string(),
|
|
APP_NAME: Env.schema.string(),
|
|
CACHE_VIEWS: Env.schema.boolean(),
|
|
SESSION_DRIVER: Env.schema.enum(["cookie", "memory"] as const),
|
|
|
|
DRIVE_DISK: Env.schema.enum(['local'] as const),
|
|
NODE_ENV: Env.schema.enum(['development', 'production', 'test'] as const),
|
|
DB_CONNECTION: Env.schema.string(),
|
|
PG_HOST: Env.schema.string({ format: 'host' }),
|
|
PG_PORT: Env.schema.number(),
|
|
PG_USER: Env.schema.string(),
|
|
PG_PASSWORD: Env.schema.string.optional(),
|
|
PG_DB_NAME: Env.schema.string(),
|
|
|
|
REDIS_HOST: Env.schema.string({ format: 'host' }),
|
|
REDIS_PORT: Env.schema.number(),
|
|
|
|
HASH_DRIVER: Env.schema.enum(["scrypt", "argon", "bcrypt", "laravel", undefined] as const),
|
|
OAI_LIST_SIZE: Env.schema.number(),
|
|
|
|
/*
|
|
|----------------------------------------------------------
|
|
| Variables for configuring the mail package
|
|
|----------------------------------------------------------
|
|
*/
|
|
SMTP_HOST: Env.schema.string.optional(),
|
|
SMTP_PORT: Env.schema.string.optional(),
|
|
RESEND_API_KEY: Env.schema.string.optional()
|
|
|
|
})
|
|
|