# Setup loadbalancer

Taskforce.sh requires a load balancer so that we can enable HTTPS which is mandatory for Auth0.

{% hint style="info" %}
Note that the screenshots in this page belongs to the old AWS dashboard.&#x20;

![](/files/dV7nAYPfSODY2QreIuT6)
{% endhint %}

Go to EC2 load balancers and create a new application load balancer:

![](/files/-MhRZ_Q_fEJuO44oNvOa)

#### Step 1. Configure the load balancer.

Make sure to choose the HTTPS listener:

![](/files/-MhRZuartUmu6do6ODzW)

Choose your Availability zones:

![](/files/-Mi4p6gtzcL4phob4b0E)

#### Step 2. Configure security settings.

In this step you will choose an appropriate TLS certificate that you must have created previously (<https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html>)

#### Step 3. Configure security groups.

In this step you must choose the security group that you created and assigned to your EC2 instance where Taskforce.sh is running.

You may also need to add a security group to make your load balancer accessible. For example for a public-faced Taskforce.sh dashboard you would define a security groups with the following inbound rules:

<figure><img src="/files/HGMju69yLBObVwDzw1D2" alt=""><figcaption></figcaption></figure>

#### Step 4. Configure Routing.

Just leave the settings on this step with its defaults, but port **4200** and just name the target group to something like *taskforcesh-target*.

![](/files/-Mi4re-3r7C-eDmh9jab)

#### Step 5. Register targets.

Choose the EC2 instance running Taskforce.sh, target port **4200** and click on "Add to registered".

![](/files/-Mi4sIl55HarbtFu_KZc)


---

# 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.taskforce.sh/on-premises/aws/setup-loadbalancer.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.
