# DigitalOcean LB

DigitalOcean, one of the most famous cloud provider for developers provides a cloud [load balancer](https://www.digitalocean.com/products/load-balancer/). You could proceed to create it at `Network` section of DigitalOcean web console.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89g9gCXowfpQkqdDgA%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%202.49.10.png?alt=media\&token=d7955036-1f5a-49c7-8def-74975a4d89b7)

Select the region where your HollaEx Kit server is running, and bound the server with load balancer through the `Add Droplet` section.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89gZwuViORa7HxdW0H%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%202.49.38.png?alt=media\&token=86b7922c-4335-460f-9071-dc53a7f676fb)

DigitalOcean Load Balancer provides both [SSL Termination](https://www.digitalocean.com/docs/networking/load-balancers/how-to/ssl-termination/) and SSL Passthrough for the encrypted communication. SSL Termination on DigitalOcean Load Balancer requires either importing manual SSL certificate or assigning DigitalOcean DNS for the Let's Encrypt certificate.

This example is using the SSL Passthrough.&#x20;

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89h8sNMKEsQNpq7wL6%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%202.51.25.png?alt=media\&token=82761af9-395c-4498-b8de-008863834ea5)

You will be able to see the Load balancer status after you saved your settings.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89jqE592jE6NpOuQPs%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%204.32.05.png?alt=media\&token=4b1e1305-098a-4a90-8239-0d29586e3a0f)

Please set the health check URL to `/v2/health` in the `Settings` section of Load balancer.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89pQ-cBf1Ea1gMTJPD%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%204.48.56.png?alt=media\&token=d3c28283-efda-416a-8b4c-6d0002d69a4a)

Before to proceed, you need to make sure to bind the Load balancer's IP with your own domain's DNS.&#x20;

There are 2 domains required for the exchange operation. One for the API server, and the other for the exchange website. If your domain is `example.com`, we recommend you to use `api.example.com` as the API domain, and `example.com` as the website domain. These domains should be bind with the load balancer's IP address with A Record.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89lC6tjjaaq_N_1Ohy%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%204.36.44.png?alt=media\&token=f1edf907-b2e2-4008-ab37-afbc2a857868)

Once the domains are all set,  run `hollaex prod` to also bind the domains to the exchange server, and issue the SSL certificate due to we selected SSL Passthrough above.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89q9ANvajJgrwjuCsH%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%204.44.48.png?alt=media\&token=1c860565-82a6-49b8-af18-aaec1fe65683)

Go to the HollaEx CLI, and run `hollaex prod` on it. You should type the domains you've bound at your DNS with the Load balancer. Since we selected SSL Passthrough, issuing SSL through the `hollaex prod` is also required.&#x20;

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89wkUenuuT3OLhfF_Y%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%205.23.58.png?alt=media\&token=c1f54abd-c523-4cf4-bf5b-f7109a324aa0)

Issue SSL certs for the both domains, and restart the server and web (rebuild) by following the CLI instruction. The server and the web will be reachable from the browser with SSL after the full restart.

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89xxjxv4ldTOM_YaLF%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%205.31.41.png?alt=media\&token=d00682e3-3648-4beb-8fac-7175a0079ccb)

![](https://gblobscdn.gitbook.com/assets%2F-LhnROlk-mZfTYA5IOjC%2F-M89eQ3aQPkKjquyHKDW%2F-M89xzvZep5tvKOVZqbI%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-05-25%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%205.32.49.png?alt=media\&token=baa905d9-ad8b-4618-b7b6-674a086196ad)

Enjoy your exchange with the powerful load balancer mounted :)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hollaex.com/advanced/load-balancer/digitalocean-lb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
