Skip to content

Docker BASE_PATH configuration leads to "Static Media Failure" #9830

Answered by candlerb
alucarddelta asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • It might be possible to configure Traefik to proxy /netbox/static/* to /static/* on the target container, whilst still proxying all other /netbox/* to /netbox/*. You'll have to check Traefik docs.
  • You could try injecting a new version of nginx-unit.json at runtime using a volume mount
  • Otherwise, you'll need to build your own container image using the original image as base, and replacing this file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryanmerolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants