Skip to content

Commit

Permalink
Merge pull request #57 from mozzy11/cert
Browse files Browse the repository at this point in the history
Disable SSL Authentication for OpenHIM core
  • Loading branch information
cintiadr committed Mar 14, 2021
2 parents 15eefe7 + 6eb5bfc commit 9ffebda
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 0 deletions.
153 changes: 153 additions & 0 deletions files/plir-openhim/core-config.json
@@ -0,0 +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": "http",
"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": {
"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"
}
}
},
"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
},
"tls": {
"enabled": false,
"port": 5051
},
"tcp": {
"enabled": false,
"port": 5052
}
},
"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: 1 addition & 0 deletions files/plir-openhim/default.json
Expand Up @@ -3,6 +3,7 @@
"minimumCoreVersion": "3.4.0",
"protocol": "https",
"host": "openhimcore.openmrs.org",
"port": 443,
"title": "Admin Console",
"footerTitle": "OpenHIM Administration Console",
"footerPoweredBy": "<a href='http://openhim.org/' target='_blank'>Powered by OpenHIM</a>",
Expand Down
2 changes: 2 additions & 0 deletions files/plir-openhim/docker-compose.yml
Expand Up @@ -31,6 +31,8 @@ services:
environment:
- mongo_url=mongodb://mongo-plir/openhim
- mongo_atnaUrl=mongodb://mongo-plir/openhim
volumes:
- ./core-config.json:/usr/src/app/config/default.json
ports:
- "5555:5001"
- "8093:8080"
Expand Down

0 comments on commit 9ffebda

Please sign in to comment.