Proxy Mode
Environment variables that configure the application to operate in proxy mode.
General config
| Name | Description | Required | Type |
|---|---|---|---|
IS_PROXY | Flag to determine if the application runs as a proxy | false | boolean |
GETAPP_URL | Defines the URL of the main API server (not the proxy) Notes:
| Required if: IS_PROXY = "true" | string |
ANALYTICS_SERVER_URL | Defines the URL of the analytics server | Required if: IS_PROXY = "true" | string |
API Auth
| Name | Description | Required | Type |
|---|---|---|---|
GETAPP_USERNAME | Username used to authenticate with the main API server | Required if: IS_PROXY = "true"andDEVICE_SECRET = ""andDIST_HTTP_PROTOCOL = "false" | string |
GETAPP_PASSWORD | Password used to authenticate with the main API server | Required if: IS_PROXY = "true"andDEVICE_SECRET = ""andDIST_HTTP_PROTOCOL = "false" | string |
DEVICE_SECRET | A secret key that will be added to each request in the Device-Auth header Notes:
Example: key1,key2,key3 | Required if: IS_PROXY = "true"andGETAPP_USERNAME = ""andGETAPP_PASSWORD = "" | string |
TLS Verification
| Name | Description | Required | Type |
|---|---|---|---|
PROXY_SECURE_TLS | Determines whether the proxy validates the main server's TLS certificate Notes:
| false | boolean Default: true |
TLS 'with out' client certificates
| Name | Description | Required | Type |
|---|---|---|---|
GETAPP_URL | The URL of the main API server Notes:
| Required if: DIST_HTTP_PROTOCOL = "false" | string |
NODE_EXTRA_CA_CERTS | Path to load additional CA certificates to the service | Required if: DIST_HTTP_PROTOCOL = "false"andGETAPP_URL = start with https | string |
TLS with client certificates
| Name | Description | Required | Type |
|---|---|---|---|
DIST_HTTP_PROTOCOL | Defines if the destination service runs in secure mode with http protocol (true for secure), used for communication the main API server with client certificates | false | boolean Default: false |
CA_CERT_PATH | Filesystem path to the CA certificate used to validate server Example: /etc/ssl/certs/ca.crt | Required if: DIST_HTTP_PROTOCOL = "true" | string |
CLIENT_CERT_PATH | Filesystem path to the client TLS certificate Example: /etc/ssl/certs/client.crt | Required if: DIST_HTTP_PROTOCOL = "true" | string |
CLIENT_KEY_PATH | Filesystem path to the client TLS key file used in mTLS Example: /etc/ssl/private/client.key | Required if: DIST_HTTP_PROTOCOL = "true" | string |
GETAPP_SSL_URL | Target hostname the main API server to establish a secure connection with client certificates Notes:
Example: google.com | Required if: DIST_HTTP_PROTOCOL = "true" | string |
GETAPP_SSL_PORT | Port of the main API server to establish a secure connection with client certificates Notes:
| Required if: DIST_HTTP_PROTOCOL = "true" | number |