Skip to content

Commit 138558a

Browse files
authored
Merge branch 'main' into CU-86byv0cyf_Add-initial-package-and-configuration-files-for-FHIR-info-Gateway
2 parents 759e7ee + 0882027 commit 138558a

File tree

19 files changed

+166
-27
lines changed

19 files changed

+166
-27
lines changed

.env.traefik.remote

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# General
2+
3+
CLUSTERED_MODE=false
4+
5+
# Log
6+
7+
DEBUG=0
8+
BASHLOG_FILE=0
9+
BASHLOG_FILE_PATH=platform.log
10+
11+
# Data Mapper - Logstash
12+
13+
LOGSTASH_DEV_MOUNT=false
14+
LOGSTASH_PACKAGE_PATH=
15+
16+
# Dashboard Visualiser - JS Report
17+
18+
## !NOTE: MAKE SURE YOU HAVE RUN 'set-permissions.sh' SCRIPT BEFORE AND AFTER RUNNING JS REPORT
19+
JS_REPORT_DEV_MOUNT=false
20+
JS_REPORT_PACKAGE_PATH=
21+
22+
# Message Bus - Kafka
23+
24+
# !NOTE: Topics should comma seperated, optional include partion and repliction values
25+
# e.g. <topic>:<partions>:<replicationFactor> -> test:3:2 (defaults to <topics>:3:1)
26+
# KAFKA_TOPICS=2xx,reprocess,3xx,metrics:3:1
27+
KAFKA_TOPICS=2xx,2xx-async,reprocess,3xx,metrics:3:3,patient,observation
28+
29+
OPENHIM_CORE_MEDIATOR_HOSTNAME=c9a4-41-90-68-240.ngrok-free.app
30+
OPENHIM_MEDIATOR_API_PORT=443/openhimcomms
31+
32+
# Reverse Proxy - Nginx
33+
REVERSE_PROXY_INSTANCES=1
34+
DOMAIN_NAME=c9a4-41-90-68-240.ngrok-free.app
35+
SUBDOMAINS=openhimcomms.<domain>,openhimcore.<domain>,openhimconsole.<domain>,kibana.<domain>,reports.<domain>,santewww.<domain>,santempi.<domain>,superset.<domain>,keycloak.<domain>,grafana.<domain>,minio.<domain>,jempi-web.<domain>,jempi-api.<domain>
36+
STAGING=false
37+
INSECURE=false
38+
39+
# Identity Access Manager - Keycloak
40+
KC_FRONTEND_URL=https://keycloak.c9a4-41-90-68-240.ngrok-free.app
41+
KC_GRAFANA_ROOT_URL=https://grafana.<domain>
42+
KC_JEMPI_ROOT_URL=https://jempi-web.<domain>
43+
KC_SUPERSET_ROOT_URL=https://superset.<domain>
44+
KC_OPENHIM_ROOT_URL=https://c9a4-41-90-68-240.ngrok-free.app
45+
GF_SERVER_DOMAIN=grafana.<domain>
46+
47+
REACT_APP_JEMPI_BASE_API_HOST=https://jempi-api.<domain>
48+
REACT_APP_JEMPI_BASE_API_PORT=443
49+
OPENHIM_CONSOLE_BASE_URL=https://c9a4-41-90-68-240.ngrok-free.app
50+
OPENHIM_API_HOST=https://c9a4-41-90-68-240.ngrok-free.app/openhimcomms
51+
OPENHIM_API_PORT=443/openhimcomms
52+
OPENHIM_HOST_NAME=c9a4-41-90-68-240.ngrok-free.app
53+
CERT_RESOLVER=le

fhir-ig-importer/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
reverse-proxy:
2222
environment:
2323
FHIR_IG_IMPORTER_CORE_URL: ${FHIR_IG_IMPORTER_CORE_URL}
24+
OPENHIM_API_USERNAME: ${OPENHIM_USERNAME}
25+
OPENHIM_API_PASSWORD: ${OPENHIM_PASSWORD}
2426

2527
networks:
2628
hapi-fhir:

fhir-ig-importer/importer/docker-compose.config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
OPENHIM_API_PASSWORD: ${OPENHIM_PASSWORD}
1313
# Reject unauthorised is only needed if the OpenHIM's SSL is not setup
1414
NODE_TLS_REJECT_UNAUTHORIZED: 0
15+
OPENHIM_CONSOLE_BASE_URL: ${OPENHIM_CONSOLE_BASE_URL}
1516
command: sh -c "node openhimConfig.js"
1617
configs:
1718
- source: fhir-ig-importer-config-importer-openhimConfig.js

fhir-ig-importer/importer/volume/ig-importer-app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "FHIR IG microfrontend app",
44
"category": "HIE Configuration",
55
"type": "esmodule",
6-
"url": "https://openhimconsole.<domain>/fhir-ig-importer",
6+
"url": "<openhim-console-url>/fhir-ig-importer",
77
"showInPortal": true,
88
"showInSideBar": true,
99
"access_roles": ["admin"],

fhir-ig-importer/importer/volume/openhimConfig.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ const appJsonData = JSON.parse(
4343
fs.readFileSync(path.resolve(__dirname, "ig-importer-app.json"))
4444
);
4545

46+
//Substitute the url with environ variable
47+
48+
let url = appJsonData.url;
49+
if (!process.env.OPENHIM_CONSOLE_BASE_URL) {
50+
throw new Error("Environment variable OPENHIM_CONSOLE_BASE_URL is not set");
51+
}
52+
let newUrl = url.replace(
53+
"<openhim-console-url>",
54+
process.env.OPENHIM_CONSOLE_BASE_URL
55+
);
56+
57+
appJsonData.url = newUrl;
4658
const data = JSON.stringify(jsonData);
4759
const appData = JSON.stringify(appJsonData);
4860

fhir-ig-importer/package-metadata.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"FHIR_IG_IMPORTER_CORE_HOST": "0.0.0.0",
1616
"FHIR_IG_IMPORTER_CORE_URL": "http://0.0.0.0:3001/fhir/ig/v1.0",
1717
"FHIR_IG_IMPORTER_UI_VERSION": "latest",
18-
"FHIR_IG_IMPORTER_CORE_VERSION": "latest"
18+
"FHIR_IG_IMPORTER_CORE_VERSION": "latest",
19+
"OPENHIM_CONSOLE_BASE_URL": "http://localhost:9000",
20+
"OPENHIM_API_USERNAME": "root@openhim.org",
21+
"OPENHIM_API_PASSWORD": "instant101"
1922
}
2023
}

identity-access-manager-keycloak/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ services:
5151
- traefik.http.routers.identity-access-manager-keycloak.service=identity-access-manager-keycloak
5252
- traefik.http.services.identity-access-manager-keycloak.loadbalancer.server.port=8080
5353
- traefik.http.routers.identity-access-manager-keycloak.rule=Host(`${KC_TRAEFIK_SUBDOMAIN}.${DOMAIN_NAME_HOST_TRAEFIK}`)
54+
- traefik.http.routers.identity-access-manager-keycloak.tls=true
55+
- traefik.http.routers.identity-access-manager-keycloak.tls.certresolver=${CERT_RESOLVER}
5456
networks:
5557
reverse-proxy:
5658
public:

interoperability-layer-openhim/docker-compose.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,21 @@ services:
5454
- traefik.http.routers.openhimcomms.tls=true
5555
- traefik.http.routers.openhimcomms.entrypoints=websecure
5656
- traefik.http.routers.openhimcomms.rule=Host(`${DOMAIN_NAME_HOST_TRAEFIK}`) && PathPrefix(`/openhimcomms`)
57-
- traefik.http.routers.openhimcomms.middlewares=openhimcomms
58-
- traefik.http.middlewares.openhimcomms.stripprefix.prefixes=/openhimcomms
59-
57+
- traefik.http.middlewares.openhimcomms-stripprefix.stripprefix.prefixes=/openhimcomms
58+
- traefik.http.routers.openhimcomms.middlewares=openhimcomms-stripprefix
59+
- traefik.http.routers.openhimcomms.tls.certresolver=le
6060
- traefik.http.routers.openhimcore.service=openhimcore
6161
- traefik.http.services.openhimcore.loadbalancer.server.port=5000
6262
- traefik.http.services.openhimcore.loadbalancer.server.scheme=https
6363
- traefik.http.routers.openhimcore.tls=true
6464
- traefik.http.routers.openhimcore.entrypoints=websecure
6565
- traefik.http.routers.openhimcore.rule=Host(`${DOMAIN_NAME_HOST_TRAEFIK}`) && PathPrefix(`/openhimcore`)
66-
- traefik.http.routers.openhimcore.middlewares=openhimcore
67-
- traefik.http.middlewares.openhimcore.stripprefix.prefixes=/openhimcore
66+
- traefik.http.middlewares.openhimcore-stripprefix.stripprefix.prefixes=/openhimcore
67+
- traefik.http.routers.openhimcore.middlewares=openhimcore-stripprefix
68+
- traefik.http.routers.openhimcore.tls.certresolver=le
69+
70+
71+
6872

6973
openhim-console:
7074
image: ${OPENHIM_CONSOLE_IMAGE}
@@ -94,7 +98,8 @@ services:
9498
- traefik.http.services.openhim-console.loadbalancer.server.scheme=http
9599
- traefik.http.routers.openhim-console.service=openhim-console
96100
- traefik.http.routers.openhim-console.entrypoints=websecure
97-
- traefik.http.routers.openhim-console.rule=Host(`${OPENHIM_SUBDOMAIN}.${DOMAIN_NAME_HOST_TRAEFIK}`)
101+
- traefik.http.routers.openhim-console.tls=true
102+
- traefik.http.routers.openhim-console.rule=Host(`${DOMAIN_NAME}`)
98103
- traefik.http.services.openhim-console.loadbalancer.server.port=80
99104
placement:
100105
max_replicas_per_node: ${OPENHIM_CONSOLE_MAX_REPLICAS_PER_NODE}

interoperability-layer-openhim/package-metadata.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
"KC_OPENHIM_CLIENT_SECRET": "tZKfEbWf0Ka5HBNZwFrdSyQH2xT1sNMR",
4444
"KC_OPENHIM_ROOT_URL": "http://localhost:9000",
4545
"KC_API_URL": "http://identity-access-manager-keycloak:8080",
46-
"OPENHIM_SUBDOMAIN": "openhim",
47-
"OPENHIM_CONSOLE_BASE_URL": "localhost:9000",
46+
"OPENHIM_CONSOLE_BASE_URL": "https://localhost:9000",
4847
"OPENHIM_API_HOST": "localhost",
4948
"OPENHIM_API_PORT": "5001"
5049
}

kafka-mapper-consumer/consumer-ui-app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Kafka mapper consumer microfrontends app",
44
"category": "HIE Configuration",
55
"type": "esmodule",
6-
"url": "http://localhost:8091/jembi-kafka-mapper-consumer-ui.js",
6+
"url": "<openhim-console-url>/kafka-mapper-consumer-ui",
77
"showInPortal": true,
88
"showInSideBar": false,
99
"access_roles": ["admin"],

0 commit comments

Comments
 (0)