-
Notifications
You must be signed in to change notification settings - Fork 5
0. Configuration
Daniel Moll edited this page Feb 6, 2017
·
2 revisions
The targets-io configuration is set per environment. The environment then can be set via the environment variable "NODE_ENV", e.g. NODE_ENV=production
will set the application to use the production configuration
The configuration settings can be set either hard coded in the configuration file or via environment variables. The following items can be configured:
logLevel: 'warning', // Winston log level
graphiteRetentionPeriod: '90d', // (90 days) Should match your Graphite retention settings. Test runs will be deleted if older than graphiteRetentionPeriod
graphiteUrl: process.env.GRAPHITE_URL, // Graphite Render URL API, e.g. "http://graphite.mycompany.com:8090"
db: process.env.MONGO_URL, // MongoDb url, e.g. "dbServer.mycompany.com:27017/targets-io"
dbConnectionPooling: true,
dbUsername: process.env.MONGO_USER,
dbPassword: process.env.MONGO_PASSWORD,
graylog : { // Graylog server, port and guiUrl, omit when not needed
host: process.env.GRAYLOG_HOST, // e.g "graylog.mycompany.com"
port: process.env.GRAYLOG_PORT,
guiUrl: process.env.GRAYLOG_GUI_URL // Url to be used by Graylog UI
},
redisHost: process.env.REDIS_HOST, // Redis server, e.g. "redis.mycompany.com"
redisPort: process.env.REDIS_PORT,
jenkinsUrl: process.env.JENKINS_URL, // Jenkins URL, e.g. "https://jenkins.mycompany.com:443"
jenkinsUser: process.env.JENKINS_USER, // Jenkins admin user
jenkinsPassword: process.env.JENKINS_PASSWORD, // Jenkins admin password
jenkinsSSL: true, // Jenkins running on https
jenkinsCaFile: path.resolve('./config/ssl-ca', 'Jenkins_root_CA.cer'), // If you are using self-signed certificate for Jenkins, provide CA certificate