OpenDAX v4 docs
Search
⌃K

Additional Domain

Option 1. Change the current platform domain via Helm

If you installed OpenDAX v4 from a VM image on AWS/GCP, connect to your machine and become deploy user. Then, export the file path of the Helm chart with following command:
export CHART_PATH=config/charts/opendax
If you installed OpenDAX v4 using a Helm chart directly, you should export the file path you used while deploying the platform initially:
export CHART_PATH=*path_to_chart*
Finally, run the following command to update the existing domain:
helm upgrade opendax "$CHART_PATH" \
-n ${DEPLOYMENT_ID:-odax} \
--reuse-values \
--set global.externalHostname=*new_domain*

Option 2. Add an additional platform domain via Updater API

To add another domain, please follow the steps:
  1. 1.
    Connect to the running VM with SSH.
  2. 2.
    Create a JWT with superadmin role:
    1. 1.
      List pods in the core namespace with command kubectl get po -n core, and copy the name of kited pod.
    2. 2.
      Execute to the kited pod with command kubectl exec -it -n core *kited_pod_name* -- sh (here replace *kited_pod_name* with the copied name).
    3. 3.
      Set Kaigara envs: export KAIGARA_DEPLOYMENT_ID=odax and export KAIGARA_APP_NAME=gotrue.
    4. 4.
      Run export KITE_AUTH_PRIVATE_KEY=$(kai env GOTRUE_JWT_SECRET | tr -d '"') to save GoTrue Private Key.
    5. 5.
      Run kite secrets jwt -r superadmin to create a JWT with the superadmin role, and copy it.
  3. 3.
    Make an HTTP request to this endpoint, passing a JWT in the header (Authorization: Bearer *your_jwt*). Usually, the resulting command would look like this:
export jwt=*superadmin_jwt*
curl -v -XPOST *external_ip*.sslip.io/api/v2/opx/domain \
-H "Authorization: Bearer ${jwt}" \
-F Domain=*domain_to_add*
4. Wait for a few minutes for Kuberenetes resources to be created.