-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconfig.cjs
34 lines (31 loc) · 1.4 KB
/
config.cjs
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
module.exports = function (env) {
return {
// Railway inputs
ADMIN_EMAIL: env.ADMIN_EMAIL,
ADMIN_PASSWORD: env.ADMIN_PASSWORD,
KEY: env.KEY,
SECRET: env.SECRET,
// https://docs.railway.app/guides/public-networking#railway-provided-port
PORT: env.PORT,
PUBLIC_URL: `http://0.0.0.0:${env.PORT}`,
// Database & storage variables for connecting to PostGIS and S3/local storage
DB_CLIENT: 'pg',
DB_CONNECTION_STRING: env.DB_CONNECTION_STRING,
STORAGE_LOCATIONS: env.STORAGE_LOCATIONS,
STORAGE_S3_DRIVER: env.STORAGE_S3_DRIVER,
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,
WEBSOCKETS_ENABLED: env.WEBSOCKETS_ENABLED,
CORS_ENABLED: env.CORS_ENABLED,
CORS_ORIGIN: env.CORS_ORIGIN,
CORS_ALLOWED_HEADERS: env.CORS_ALLOWED_HEADERS,
CORS_EXPOSED_HEADERS: env.CORS_EXPOSED_HEADERS,
CORS_METHODS: env.CORS_METHODS,
EXTENSIONS_PATH: env.EXTENSIONS_PATH,
EMAIL_TEMPLATES_PATH: env.EMAIL_TEMPLATES_PATH,
MIGRATIONS_PATH: env.MIGRATIONS_PATH,
};
};