-
Notifications
You must be signed in to change notification settings - Fork 0
/
directus.config.js
38 lines (34 loc) · 1.31 KB
/
directus.config.js
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
34
35
36
37
38
module.exports = function (env) {
return {
// User inputs from railway starter button
ADMIN_EMAIL: env.ADMIN_EMAIL,
ADMIN_PASSWORD: env.ADMIN_PASSWORD,
KEY: env.KEY,
SECRET: env.SECRET,
// Reference: https://docs.railway.app/deploy/exposing-your-app
PORT: env.PORT,
// Reference: https://docs.railway.app/develop/variables#railway-provided-variables
PUBLIC_URL: `https://${env.RAILWAY_STATIC_URL}`,
// Database variables from Railway PostgreSQL Plugin
// Reference: https://docs.railway.app/plugins/postgresql
DB_CLIENT: 'pg',
DB_HOST: env.PGHOST,
DB_PORT: env.PGPORT,
DB_DATABASE: env.PGDATABASE,
DB_USER: env.PGUSER,
DB_PASSWORD: env.PGPASSWORD,
MESSENGER_STORE: 'redis',
SYNCHRONIZATION_STORE: 'redis',
REDIS_HOST: env.REDISHOST,
REDIS_PORT: env.REDISPORT,
CACHE_ENABLED: env.CACHE_ENABLED,
CACHE_STORE: 'redis',
REDIS_USERNAME: env.REDISUSER,
REDIS_PASSWORD: env.REDISPASSWORD,
STORAGE_LOCATIONS: "s3",
STORAGE_S3_DRIVER: "s3",
STORAGE_S3_CONTAINER_NAME: env.STORAGE_S3_CONTAINER_NAME,
STORAGE_S3_ACCOUNT_KEY: env.STORAGE_S3_ACCOUNT_NAME,
STORAGE_S3_ENDPOINT: env.STORAGE_S3_ENDPOINT
};
};