Giter VIP home page Giter VIP logo

Comments (5)

tobiasge avatar tobiasge commented on September 27, 2024

I can't reproduce the problem with the image from Docker Hub. Are you using the correct FROM tag in your Dockerfile-Plugins?

from netbox-docker.

KPTheProf avatar KPTheProf commented on September 27, 2024

Here's the content of Dockerfile-Plugins

FROM netboxcommunity/netbox:latest

COPY ./plugin_requirements.txt /opt/netbox/
RUN /opt/netbox/venv/bin/pip install  --no-warn-script-location -r /opt/netbox/plugin_requirements.txt

# These lines are only required if your plugin has its own static files.
COPY configuration/configuration.py /etc/netbox/config/configuration.py
COPY configuration/plugins.py /etc/netbox/config/plugins.py
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input

from netbox-docker.

KPTheProf avatar KPTheProf commented on September 27, 2024

Hi @tobiasge, FYI, I've cleaned down all my images and upgraded Docker Desktop to the latest version 4.30 (on Window 11 Pro) and pulled and rebuilt netbox.

If I use https://localhost I get the issue as described.
I have found that if I connect directly using http://localhost:8000 I don't get the issue and dark mode stays on.

I'm using the recommended setup for Caddy from the wiki TLS

Here's the section from the Caddy file for localhost.

0.0.0.0, ::0, localhost {
    reverse_proxy netbox:8080
    encode gzip zstd
    
    tls /etc/ssl/private/localhost.crt /etc/ssl/private/localhost.key

    log {
      level error
    }
}

There were no issues previoulsy with dark mode using TLS until I upgraded to Netbox 4.0.0 (and Netbox-docker 2.9.0) this morning.

from netbox-docker.

tobiasge avatar tobiasge commented on September 27, 2024

Might also be related to netbox-community/netbox#16003

from netbox-docker.

KPTheProf avatar KPTheProf commented on September 27, 2024

Hi @tobiasge, thanks for pointing that out, I'm not getting the issue this morning and I haven't made any changes. I can only assume that the setmode.js has expired from the cache overnight.

I think that this can be closed, as the fix will be in Fixes #16003: Enable cache busting on upgrade for setmode.js

Below is a screen shot from the debugger for reference. The above fix will add a version number like netbox.js

image

from netbox-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.