-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.ts
33 lines (28 loc) · 1.08 KB
/
env.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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_NAME: Env.schema.string(),
SESSION_DRIVER: Env.schema.string(),
DRIVE_DISK: Env.schema.enum(["local", "s3"] 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_CONNECTION: Env.schema.enum(["local"] as const),
REDIS_HOST: Env.schema.string({ format: "host" }),
REDIS_PORT: Env.schema.number(),
REDIS_PASSWORD: Env.schema.string.optional(),
SES_ACCESS_KEY: Env.schema.string(),
SES_ACCESS_SECRET: Env.schema.string(),
SES_REGION: Env.schema.string(),
S3_KEY: Env.schema.string(),
S3_SECRET: Env.schema.string(),
S3_BUCKET: Env.schema.string(),
S3_REGION: Env.schema.string(),
S3_ENDPOINT: Env.schema.string.optional(),
});