Inventree - Route

In this example, a direct route to the Inventree container is set up.

Step 1 - Installation

When installing Inventree, install docker compose according to the instructions.

Contrary to the documentation, you set the variable "INVENTREE_SITE_URL" in the .env to your domain with https. Example: https://inven.mydomain.com

In the docker-compose.yml we change the “expose” to “ports” on the service “inventree-server” so that port 8000 can be reached.

We pass an extra enviroment INVENTREE_SITE_URL to the caddy server and let it continue to run under “http”.

Step 2 - FlyingFish Route

First we create a route on the list for HTTPs.

Enable SSL (Lets Encrypt).

Set the target to the IP of the inventory over http (for intern).

Set the advanced settings.

We now save everything and as a result we should see a secure login with a valid certificate in a few minutes.

Last updated