forked from smartdevicelink/sdl_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.js
41 lines (40 loc) · 2.56 KB
/
settings.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
39
40
41
require('dotenv').config();
module.exports = {
//name of the folder in the `databases` folder that you want to use as the module of
//interfacing with a specific database. The entry point must be named index.js and implement the required functions
dbModule: "postgres",
dbUser: process.env.DB_USER || null,
dbDatabase: process.env.DB_DATABASE || null,
dbPassword: process.env.DB_PASSWORD || null,
dbHost: process.env.DB_HOST || null,
dbPort: process.env.DB_PORT || null,
//name of the folder in the `loggers` folder that is used as the module of interfacing
//with a loggin module. The entry point must be named index.js and implement the required functions
loggerModule: process.env.LOG_MODULE || "winston",
//name of the folder in the `cache` folder that is used as the module for interfacing
//with a cache module. The entry point must be named index.js and implement the required functions
cacheModule: process.env.CACHE_MODULE || null,
cacheModulePort: process.env.CACHE_PORT,
cacheModuleHost: process.env.CACHE_HOST,
cacheModulePassword: process.env.CACHE_PASSWORD,
//the fully qualified hostname of this Policy Server (e.g. "policyserver.vehicleoem.com")
policyServerHost: process.env.POLICY_SERVER_HOST || "localhost",
//the port this server will be running in
policyServerPort: process.env.POLICY_SERVER_PORT || 3000,
//the SSL certificate files and secure port to listen for secure connections with
//files should be stored in ./customizable/ssl
sslPrivateKeyFilename: process.env.SSL_PRIVATE_KEY_FILENAME || null,
sslCertificateFilename: process.env.SSL_CERTIFICATE_FILENAME || null,
policyServerPortSSL: process.env.POLICY_SERVER_PORT_SSL || null, // typically 443
//what kind of auth to enforce? "basic" or null (no authentication)
authType: process.env.AUTH_TYPE || null,
//an optional password users must enter to access the Policy Server interface when paired with "basic" authType
basicAuthPassword: process.env.BASIC_AUTH_PASSWORD || null,
//whether or not to auto-approve all app versions received by SHAID (unless specifically blacklisted)
autoApproveAllApps: process.env.AUTO_APPROVE_ALL_APPS == "true" ? true : false,
//credentials for using the SHAID API
shaidPublicKey: process.env.SHAID_PUBLIC_KEY,
shaidSecretKey: process.env.SHAID_SECRET_KEY,
//the location of the RPC specification in order to retrieve an up-to-date language list
githubLanguageSourceUrl: 'https://raw.githubusercontent.com/smartdevicelink/rpc_spec/master/MOBILE_API.xml'
}