arrow-left

All pages
gitbookPowered by GitBook
1 of 2

Loading...

Loading...

Environment Variables

The following environment variables can be used to configure Traefik:

Variable
Value
Description

CERT_RESOLVER

le

The certificate resolver to use for obtaining TLS certificates.

CA_SERVER

The URL of the ACME server for certificate generation.

TLS

true

Enable or disable TLS encryption.

TLS_CHALLENGE

http

The challenge type to use for TLS certificate generation.

WEB_ENTRY_POINT

web

The entry point for web traffic.

REDIRECT_TO_HTTPS

true

Enable or disable automatic redirection to HTTPS.

https://acme-v02.api.letsencrypt.org/directoryarrow-up-right

Reverse Proxy Traefik

Reverse proxy for secure traefik configurations.

hashtag
Reverse Proxy Traefik

hashtag
Reverse Proxy Traefik

The package is an alternative reverse proxy Nginx, this reverse proxy exposes packages using both subdomains and subdirectories to host the following services:

Package
Hosted

Please ensure that the ENV "DOMAIN_NAME_HOST_TRAEFIK" is set, in this documentation we will be using the placeholder "domain" for its value

hashtag
Subdomain-Based Reverse Proxy

The following packages do not support subdomains and require the use of domain/subdomain to access over the reverse proxy

hashtag
Superset

Set the following environment variable in the package-metadata.json in the "./dashboard-visualiser-superset" directory

hashtag
Jempi

Set the following environment variables in the package-metadata.json in the "./client-registry-jempi" directory

hashtag
Santempi

Set the following environment variables in the package-metadata.json in the "./client-registry-santempi" directory

hashtag
Enabling Kibana

Set the following environment variables in the package-metadata.json in the "./dashboard-visualiser-kibana" directory

hashtag
Subdirectory

hashtag
Enabling Minio

Set the following environment variables in the package-metadata.json in the "monitoring" directory

hashtag
MinIO Configuration

The MinIO server is configured to run with the following port settings:

  • API Port: 9090

  • Console Port: 9001

Ensure that your Traefik configuration reflects these ports to properly route traffic to the MinIO services. The API can be accessed at https://<domain>/minio and the Console at https://<domain>/minio-console.

Update your Traefik labels in the docker-compose.yml to match these settings:

hashtag
Enabling Grafana

Set the following environment variables in the package-metadata.json in the "monitoring" directory

hashtag
JS Report

Set the following environment variables in the package-metadata.json in the "dashboard-visualiser-jsreport" directory

hashtag
OpenHIM

Set the following environment variables in the package-metadata.json in the "./interoperability-layer-openhim" directory

Note: Only the Backend services are accessible through subdirectory paths, not the frontend

Sub Directory (e.g. /jsreport)

OpenHim

Sub Domain (Frontend) Sub Directory (Backend) (e.g. openhim. and openhim./openhimcore)

Superset

Sub Domain (e.g. superset.)

Jempi

Sub Domain (e.g. jempi.)

Santempi

Sub Domain (e.g. santempi.)

Kibana

Sub Domain (e.g. kibana.)

Minio

Sub Directory (e.g. /minio)

Grafana

Sub Directory (e.g. /grafana)

JSReport

"environmentVariables":
{
# Other Configurations
...
    "SUPERSET_TRAEFIK_SUBDOMAIN": "superset"
}
"environmentVariables":
{
# Other Configurations
...
    "REACT_APP_JEMPI_BASE_API_HOST": "jempi-api.domain",
    "REACT_APP_JEMPI_BASE_API_PORT": "443",
    "JEMPI_API_TRAEFIK_SUBDOMAIN": "jempi-api",
    "JEMPI_WEB_TRAEFIK_HOST_NAME": "jempi-web",
}
"environmentVariables":
{
# Other Configurations
...
    "SANTEDB_WWW_TRAEFIK_SUBDOMAIN": "santewww",
    "SANTEDB_MPI_TRAEFIK_SUBDOMAIN": "santempi"
}

"environmentVariables":
{
# Other Configurations
...
    "KIBANA_TRAEFIK_SUBDOMAIN": "kibana"
}
"environmentVariables":
{
# Other Configurations
...
    "MINIO_BROWSER_REDIRECT_URL": "https://domain/minio-console/"
}
# API Configuration
- traefik.http.services.minio.loadbalancer.server.port=9090
# Console Configuration
- traefik.http.services.minio-console.loadbalancer.server.port=9001

"environmentVariables":
{
# Other Configurations
...
    "KC_GRAFANA_ROOT_URL": "%(protocol)s://%(domain)s/grafana/",
    "GF_SERVER_DOMAIN": "domain",
    "GF_SERVER_SERVE_FROM_SUB_PATH": "true",
}
"environmentVariables":
{
# Other Configurations
...
    "JS_REPORT_PATH_PREFIX": "/jsreport"
}
"environmentVariables":
{
# Other Configurations
...
    "OPENHIM_SUBDOMAIN": "domain",
    "OPENHIM_CONSOLE_BASE_URL": "http://domain"
    "OPENHIM_CORE_MEDIATOR_HOSTNAME": "domain/openhimcomms",
    "OPENHIM_MEDIATOR_API_PORT": "443"
}