-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirectus.config.js
38 lines (34 loc) · 1.23 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}`,
// PUBLIC_URL: `http://0.0.0.0:${env.PORT}`,
PUBLIC_URL: env.PUBLIC_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,
STORAGE_LOCATIONS: "s3",
STORAGE_S3_DRIVER: "s3",
STORAGE_S3_KEY: env.STORAGE_S3_KEY,
STORAGE_S3_SECRET: env.STORAGE_S3_SECRET,
STORAGE_S3_REGION: env.STORAGE_S3_REGION,
STORAGE_S3_BUCKET: env.STORAGE_S3_BUCKET,
STORAGE_S3_ENDPOINT: env.STORAGE_S3_ENDPOINT,
CORS_ENABLED: env.CORS_ENABLED,
CORS_ORIGIN: env.CORS_ORIGIN,
CORS_ALLOWED_HEADERS: env.CORS_ALLOWED_HEADERS,
CORS_METHODS: env.CORS_METHODS,
};
};