Skip to content

Commit

Permalink
disable SSL AUTH for the openhim core
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Mar 12, 2021
1 parent e18ad7e commit 6eb5bfc
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 146 deletions.
289 changes: 144 additions & 145 deletions files/plir-openhim/core-config.json
@@ -1,154 +1,153 @@
{
"bindAddress": "0.0.0.0",
"mongo": {
"url": "mongodb://localhost/openhim",
"atnaUrl": "mongodb://localhost/openhim",
"connectionOptions": {},
"openHIMApiReadPreference": "primaryPreferred",
"openHIMApiWriteConcern": 1,
"openHIMApiReadConcern": "local"
},
"logger": {
"level": "info",
"logToDB": true,
"capDBLogs": true,
"capSize": 10000000
},
"mongoLogger": {
"options": {
"w": 0,
"useNewUrlParser": true
}
},
"router": {
"externalHostname": "localhost",
"httpPort": 5001,
"httpsPort": 5000,
"timeout": 60000
},
"bodyCull":{
"enabled":true,
"pollPeriodMins": 60
},
"api": {
"enabled": true,
"protocol": "https",
"port": 8080,
"authWindowSeconds": 10,
"maxBodiesSizeMB": 15,
"maxPayloadSizeMB": 50,
"truncateSize": 15000,
"truncateAppend": "\n[truncated ...]",
"authenticationTypes": ["token"]
},
"rerun": {
"httpPort": 7786,
"host": "localhost",
"processor": {
"enabled": true,
"pollPeriodMillis": 2000
}
},
"tcpAdapter": {
"httpReceiver": {
"httpPort": 7787,
"host": "localhost"
}
},
"polling": {
"bindAddress": "0.0.0.0",
"mongo": {
"url": "mongodb://localhost/openhim",
"atnaUrl": "mongodb://localhost/openhim",
"connectionOptions": {},
"openHIMApiReadPreference": "primaryPreferred",
"openHIMApiWriteConcern": 1,
"openHIMApiReadConcern": "local"
},
"logger": {
"level": "info",
"logToDB": true,
"capDBLogs": true,
"capSize": 10000000
},
"mongoLogger": {
"options": {
"w": 0,
"useNewUrlParser": true
}
},
"router": {
"externalHostname": "localhost",
"httpPort": 5001,
"httpsPort": 5000,
"timeout": 60000
},
"bodyCull":{
"enabled":true,
"pollPeriodMins": 60
},
"api": {
"enabled": true,
"protocol": "http",
"port": 8080,
"authWindowSeconds": 10,
"maxBodiesSizeMB": 15,
"maxPayloadSizeMB": 50,
"truncateSize": 15000,
"truncateAppend": "\n[truncated ...]",
"authenticationTypes": ["token"]
},
"rerun": {
"httpPort": 7786,
"host": "localhost",
"processor": {
"enabled": true,
"pollingPort": 7788,
"pollPeriodMillis": 2000
}
},
"tcpAdapter": {
"httpReceiver": {
"httpPort": 7787,
"host": "localhost"
},
"authentication": {
"enableMutualTLSAuthentication": true,
"enableBasicAuthentication": true,
"enableCustomTokenAuthentication": false,
"enableJWTAuthentication": false,
"jwt": {
"secretOrPublicKey": "",
"algorithms": "",
"audience": "",
"issuer": ""
}
},
"email": {
"fromAddress": "address@example.com",
"nodemailer": {
"service": "Gmail",
"auth": {
"user": "user@gmail.com",
"pass": "password"
}
}
},
"smsGateway": {
"provider": "clickatell",
"config": {
"user": "user",
"pass": "pass",
"apiID": "apiID"
}
},
"polling": {
"enabled": true,
"pollingPort": 7788,
"host": "localhost"
},
"authentication": {
"enableMutualTLSAuthentication": false,
"enableBasicAuthentication": true,
"enableCustomTokenAuthentication": false,
"enableJWTAuthentication": false,
"jwt": {
"secretOrPublicKey": "",
"algorithms": "",
"audience": "",
"issuer": ""
}
},
"email": {
"fromAddress": "address@example.com",
"nodemailer": {
"service": "Gmail",
"auth": {
"user": "user@gmail.com",
"pass": "password"
}
},
"alerts": {
"enableAlerts": true,
"pollPeriodMinutes": 1,
"himInstance": "Local OpenHIM",
"consoleURL": "http://localhost:9000"
},
"reports": {
"enableReports": true,
"dailyReportAt": "0 7 * * *",
"weeklyReportAt": "0 7 * * 1",
"utcOffset": null
},
"events": {
"enableTSNormalization": true
},
"newUserExpiry": {
"duration": 7,
"durationType": "days"
},
"userPasswordResetExpiry": {
"duration": 1,
"durationType": "hours"
},
"auditing": {
"servers": {
"udp": {
"enabled": false,
"port": 5050
},
"tls": {
"enabled": false,
"port": 5051
},
"tcp": {
"enabled": false,
"port": 5052
}
}
},
"smsGateway": {
"provider": "clickatell",
"config": {
"user": "user",
"pass": "pass",
"apiID": "apiID"
}
},
"alerts": {
"enableAlerts": true,
"pollPeriodMinutes": 1,
"himInstance": "Local OpenHIM",
"consoleURL": "http://localhost:9000"
},
"reports": {
"enableReports": true,
"dailyReportAt": "0 7 * * *",
"weeklyReportAt": "0 7 * * 1",
"utcOffset": null
},
"events": {
"enableTSNormalization": true
},
"newUserExpiry": {
"duration": 7,
"durationType": "days"
},
"userPasswordResetExpiry": {
"duration": 1,
"durationType": "hours"
},
"auditing": {
"servers": {
"udp": {
"enabled": false,
"port": 5050
},
"auditEvents": {
"interface": "internal",
"host": "localhost",
"port": 5051,
"auditSourceID": "OpenHIM"
"tls": {
"enabled": false,
"port": 5051
},
"tcp": {
"enabled": false,
"port": 5052
}
},
"caching": {
"enabled": true,
"refreshMillis": 1000
},
"tlsClientLookup": {
"type": "strict"
},
"agenda": {
"startupDelay": 500
},
"certificateManagement": {
"watchFSForCert": true,
"certPath": "/etc/letsencrypt/live/namanga.openmrs.org/fullchain.pem",
"keyPath": "/etc/letsencrypt/live/namanga.openmrs.org/privkey.pem"
"auditEvents": {
"interface": "internal",
"host": "localhost",
"port": 5051,
"auditSourceID": "OpenHIM"
}
},
"caching": {
"enabled": true,
"refreshMillis": 1000
},
"tlsClientLookup": {
"type": "strict"
},
"agenda": {
"startupDelay": 500
},
"certificateManagement": {
"watchFSForCert": false,
"certPath": "/etc/letsencrypt/live/openhim.jembi.org/cert.pem",
"keyPath": "/etc/letsencrypt/live/openhim.jembi.org/privkey.pem"
}
}
1 change: 0 additions & 1 deletion files/plir-openhim/docker-compose.yml
Expand Up @@ -32,7 +32,6 @@ services:
- mongo_url=mongodb://mongo-plir/openhim
- mongo_atnaUrl=mongodb://mongo-plir/openhim
volumes:
- /etc/letsencrypt/live/namanga.openmrs.org:/etc/letsencrypt/live/namanga.openmrs.org
- ./core-config.json:/usr/src/app/config/default.json
ports:
- "5555:5001"
Expand Down

0 comments on commit 6eb5bfc

Please sign in to comment.