mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 18:59:56 +01:00
33 lines
1.0 KiB
TypeScript
33 lines
1.0 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 '@ioc:Adonis/Core/Env'
|
|
|
|
export default Env.rules({
|
|
HOST: Env.schema.string({ format: 'host' }),
|
|
PORT: Env.schema.number(),
|
|
APP_KEY: Env.schema.string(),
|
|
APP_URL: Env.schema.string(),
|
|
|
|
REDIS_HOST: Env.schema.string(),
|
|
REDIS_PORT: Env.schema.number(),
|
|
REDIS_PASSWORD: Env.schema.string.optional(),
|
|
|
|
MYSQL_HOST: Env.schema.string(),
|
|
MYSQL_PORT: Env.schema.number(),
|
|
MYSQL_USER: Env.schema.string(),
|
|
MYSQL_PASSWORD: Env.schema.string.optional(),
|
|
MYSQL_DB_NAME: Env.schema.string(),
|
|
})
|