Docker BASE_PATH configuration leads to "Static Media Failure" #9830
-
Hey, I'm trying to use a Traefik to add a The docker compose builds correctly and Traefik reports the its config is good, however when I go to the path eg The To see if it was my install (eg. missing css files), I ran the docker compose with the port mapping (8000:8080) and without the BASE_PATH config. This worked as expected. Netbox version:
Added env to netbox.env: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The docker container uses nginx to serve the static content: This serves under The options for you I can see are:
|
Beta Was this translation helpful? Give feedback.
The docker container uses nginx to serve the static content:
https://github.com/netbox-community/netbox-docker/blob/release/docker/nginx-unit.json
This serves under
/static/
and as far as I can see is not configurable.The options for you I can see are:
/netbox/static/*
to/static/*
on the target container, whilst still proxying all other/netbox/*
to/netbox/*
. You'll have to check Traefik docs.nginx-unit.json
at runtime using a volume mount