2023-12-31 09:24:05 -05:00
---
title: Installing Traefik
---
2022-09-09 16:16:43 -04:00
Within TrueCharts, our aim is to make it as easy as possible to secure your Apps.
To support this, we supply a separate Traefik "ingress" app, which has been pre-configured to provide secure and fast connections.
2024-01-02 07:59:58 -05:00
:::notice
2024-03-22 06:20:50 -04:00
The current TrueCharts implementation of Traefik doesn't support TCP/UDP Ingress, only HTTP/HTTPS.
2024-01-02 07:59:58 -05:00
:::
2022-09-09 16:16:43 -04:00
## How-To
### TrueNAS WebUI
In order to set up Traefik, you will be required to change the default TrueNAS WebUI access ports.
These ports are by default set to port `80` for HTTP and port `443` for HTTPS.
2024-03-22 06:20:50 -04:00
This is necessary as we will be setting Traefik up to function as a reverse proxy, and to receive traffic on these host ports.
2022-09-09 16:16:43 -04:00
2024-03-22 06:20:50 -04:00
In the TrueNAS Menu, navigate to **System Settings** > **General** . Click the **Settings** button at the top right of the GUI component.
2022-09-09 16:16:43 -04:00
Under these **GUI Settings** , change:
- Web Interface HTTP Port to port `81`
- Web Interface HTTPS Port to port `444` .
Click **Save** to save your changes. The WebUI will now prompt you to restart the web server service,
after which you will be automatically redirected to your dashboard through one of the new ports.
If you are not prompted to restart the web server service, you may restart the machine and manually navigate
to the WebUI address followed by one of the new ports eg. `truenas.local:81` .
:::info
These are the recommended ports for this procedure. Using different ports may require some
changes to your configuration that are not covered in this tutorial.
:::
:::warning
Do not skip this step. Neglecting to change the default ports active may cause your WebUI to become inaccessible after the following step.
Ensure you are accessing your WebUI from the new ports before proceeding.
:::
2024-03-22 06:20:50 -04:00
### Installing the Traefik SCALE App
2022-09-09 16:16:43 -04:00
2023-02-19 16:20:53 -05:00
:::note
2024-04-14 01:35:59 -04:00
Traefik is part of the `premium` train, so make sure you have it enabled as specified in the [guide ](/platforms/scale/guides/getting-started/#adding-truecharts ).
2023-02-19 16:20:53 -05:00
:::
2024-03-22 06:20:50 -04:00
In the TrueNAS Menu, navigate to **Apps** > **Discover Apps** . Use the search bar to search for or manually
find the Traefik app in the list of apps, and click **Install** .
2022-09-09 16:16:43 -04:00
The setup of Traefik is relatively straight-forward. Most of the settings remain unchanged from default, except for these two:
- **Application Name**: Enter a name for your app. You may use simply _traefik_ for this field.
2023-12-23 13:18:47 -05:00
- At the bottom, check the warning checkbox.
2022-09-09 16:16:43 -04:00
Continue to section 12, and select **Next** . Traefik will now be installed.
2024-03-22 06:20:50 -04:00
After installation you can access the Traefik dashboard using your host IP address followed by `:9000` , or by simply clicking `Open` on the application's entry under **Apps** > **Installed Applications** .
2022-09-09 16:16:43 -04:00
## Video Guide
< iframe width = "560" height = "315" src = "https://www.youtube.com/embed/bWNPfrKjawI" title = "YouTube video player" frameBorder = "0" allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen > < / iframe >