2023-12-31 14:24:05 +00:00
---
title: Add Traefik Basic Auth to Apps
---
2022-10-10 14:47:41 +00:00
2024-03-22 10:20:50 +00:00
Our `traefik` chart has the ability to add various `middlewares` to the chart that can add extra functionality to your setup. You can see the full list of `middlewares` inside the `traefik` menu options. In this guide we'll go over setting up the `Basic Auth` traefik middleware.
2022-10-10 14:47:41 +00:00
2023-12-31 14:24:05 +00:00
## Prerequisites
2022-10-10 14:47:41 +00:00
- Traefik installed (see previous steps of `SCALE Apps Manual` )
2023-12-31 14:24:05 +00:00
## Installation
2022-10-10 14:47:41 +00:00
Once `traefik` is installed, scroll down to the `Middlewares` section
2023-12-31 20:39:31 +00:00
![BasicAuth ](./img/BasicAuth.png )
2022-10-10 14:47:41 +00:00
2024-03-22 10:20:50 +00:00
When there, you can fill out the `Configure basicAuth` section with what follows:
2022-10-10 14:47:41 +00:00
- Name the `basicAuth` , most people choose `basic`
- Add as name users as necessary, choosing a specific `Username` and `Password` for each user.
2023-12-31 14:24:05 +00:00
## Adding it to Apps using Ingress
2022-10-10 14:47:41 +00:00
Once you have your `basicAuth` setup, you need to add it to apps that have `Ingress` (Traefik) enabled, otherwise you cannot use this middleware.
2023-12-31 20:39:31 +00:00
![EnabledIngress ](./img/IngressEnabled.png )
2022-10-10 14:47:41 +00:00
Scroll to the section `Configure Traefik Middlewares`
- Click `Add` to add a fillable section
- Write in the name of the `basicAuth` from before. For most people that's basic as the example below.
2023-12-31 20:39:31 +00:00
![ConfigureTraefikMiddlewares ](./img/ConfigureTraefikMiddlewares.png )
2022-10-10 14:47:41 +00:00
2023-12-31 14:24:05 +00:00
## Verify Authentication
2022-10-10 14:47:41 +00:00
Once the `basicAuth` is installed, please visit the `URL` that you configured the `Ingress` for. If everything is setup correctly you should see the Pop-Up below.
2023-12-31 20:39:31 +00:00
![BasicAuthWorking ](./img/BasicAuthWorking.png )
2022-10-10 14:47:41 +00:00
## Video Guide
< iframe width = "560" height = "315" src = "https://www.youtube.com/embed/hDdFKE5-c44" title = "YouTube video player" frameBorder = "0" allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen > < / iframe >
## Support
- If you need more help you can also reach us using [Discord ](https://discord.gg/tVsPTHWTtr ) for real-time feedback and support.