2023-12-31 09:24:05 -05:00
---
title: Add Traefik Basic Auth to Apps
---
2022-10-10 10:47:41 -04:00
2024-03-22 06:20:50 -04: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 10:47:41 -04:00
2023-12-31 09:24:05 -05:00
## Prerequisites
2022-10-10 10:47:41 -04:00
- Traefik installed (see previous steps of `SCALE Apps Manual` )
2023-12-31 09:24:05 -05:00
## Installation
2022-10-10 10:47:41 -04:00
Once `traefik` is installed, scroll down to the `Middlewares` section
2023-12-31 15:39:31 -05:00
![BasicAuth ](./img/BasicAuth.png )
2022-10-10 10:47:41 -04:00
2024-03-22 06:20:50 -04:00
When there, you can fill out the `Configure basicAuth` section with what follows:
2022-10-10 10:47:41 -04: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 09:24:05 -05:00
## Adding it to Apps using Ingress
2022-10-10 10:47:41 -04: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 15:39:31 -05:00
![EnabledIngress ](./img/IngressEnabled.png )
2022-10-10 10:47:41 -04: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 15:39:31 -05:00
![ConfigureTraefikMiddlewares ](./img/ConfigureTraefikMiddlewares.png )
2022-10-10 10:47:41 -04:00
2023-12-31 09:24:05 -05:00
## Verify Authentication
2022-10-10 10:47:41 -04: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 15:39:31 -05:00
![BasicAuthWorking ](./img/BasicAuthWorking.png )
2022-10-10 10:47:41 -04: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.