Replies: 2 comments
-
Permissions maybe? |
Beta Was this translation helpful? Give feedback.
-
Modifying a running docker image is perhaps the worst way you could have chosen to customize netbox. If you really want to change the look of your netbox instance, you can either fork the netbox version you are using (seems to be old) and build your own images using build.sh with the SRC_ORG and SRC_REPO options. Alternatively you could try to see if your modifications are possible with the BANNER_TOP/BANNER_BOTTOM options. HTML is allowed, so it might be possible to overwrite stuff with a <style> block or some javascript. https://netbox.readthedocs.io/en/stable/configuration/optional-settings/#banner_top
Probably not, the files are probably just cached on that machine. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Lovely Community,
i am facing an issue, what is to me currently a bit unclear why this is happening.
I have a Netbox Container behind a traefik reverse Proxy to handle https for netbox.
It is working problery.
What i customized is some css adjustments and replaced the default netbox logo using:
docker-compose exec -T --user root netbox tar x -zvf - -C /opt/netbox/netbox/static/img < logo.tar.gz
docker-compose exec -T --user root netbox tar x -zvf - -C /opt/netbox/netbox/static/bootstrap-3.4.1-dist/css < bootstrap.min.css.tar.gz
docker-compose exec -T --user root netbox tar x -zvf - -C /opt/netbox/netbox/static/css < base.tgz
Now i want to access netbox from a host which has no access to the internet and only access to the traefik ip with its port 443.
When i launch a webbrowser an open the netbox url i am receiving the following error:
If i am opening the url from a pc which has access to the "internet" the page is completly loading proberly.
The https cert ca i am using, is internally windows domain root ca, so i am not using a letsencrypt or something like that.
Static Media Failure
The following static media file failed to load:
bootstrap-3.4.1-dist/css/bootstrap.min.css
Check the following:
manage.py collectstatic was run during the most recent upgrade. This installs the most recent iteration of each static file into the static root path.
...
I could solve the issue by using the command inside the netbox container:
manage.py collectstatic
but once i did that, all my customizations like color css and logo is gone/back to default.
What did i miss here?
netbox version 2.11.12
Beta Was this translation helpful? Give feedback.
All reactions