Commit a625fd1f authored by Matt's avatar Matt

Agregacion del archivo config.js

parent d4a26e85
......@@ -27,7 +27,7 @@ nbproject/project.properties
nbproject/project.xml
*.sublime-workspace
server/config.js
#server/config.js
.brackets.json
/app/nbproject/private/
newrelic_agent.log
......
/* eslint-disable */
var config = {
couchDbServer: 'localhost',
couchDbPort: '5984',
couchDbUseSsl: false,
couchDbChangesSince: 'now',
couchAdminUser: 'hradmin',
couchAdminPassword: 'test',
googleClientId: 'FOR GOOGLE SSO; GOOGLE CLIENT ID GOES HERE',
googleClientSecret: 'FOR GOOGLE SSO; GOOGLE CLIENT SECRET GOES HERE',
serverPort: '4200',
server: 'localhost',
useGoogleAuth: false,
useSSL: false,
imagesdir: '/tmp/patientimages',
attachmentsDir: 'tmp/attachments',
disableOfflineSync: false, //Set to true to disable offline usage
/* The following settings are used to enable offline usage of HospitalRun
You will need to install web-push to generate the keys:
1. npm install web-push -g
2. web-push generate-vapid-keys
3. You will need to set pushContactInfo to a valid email address
pushPublicKey: false,
pushPrivateKey: false,
pushContactInfo: 'mailto:YOUR ADMIN EMAIL HERE'
*/
};
config.couchCredentials = function() {
if (config.couchAdminUser && config.couchAdminPassword) {
return config.couchAdminUser + ':' + config.couchAdminPassword + '@';
} else {
return '';
}
};
config.getProtocol = function(isSSL) {
return 'http' + (isSSL ? 's' : '') + '://';
};
config.serverURL = config.getProtocol(config.useSSL) + config.server;
if (config.serverPort) {
config.serverURL += ':' + config.serverPort;
}
config.couchDbURL = config.getProtocol(config.couchDbUseSsl) + config.couchDbServer + ':' + config.couchDbPort;
config.couchAuthDbURL = config.getProtocol(config.couchDbUseSsl) + config.couchCredentials() + config.couchDbServer + ':' + config.couchDbPort;
// config.searchURL = 'http://localhost:9200'; ELASTIC SEARCH URL (OPTIONAL)
config.serverInfo = 'Development Ember CLI server';
module.exports = config;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment