aceberg / WatchYourLAN

Lightweight network IP scanner. Can be used to notify about new hosts and monitor host online/offline history
https://hub.docker.com/r/aceberg/watchyourlan
MIT License
3.84k stars 119 forks source link

no CSS without internet #41

Closed LucaMH closed 1 year ago

LucaMH commented 1 year ago

Hi,

our internet went offline this morning and i checked all my containers for function without internet.

All of them seemed fine until i came around WatchYourLAN. The CSS is pulled from the web. Is there any chance to include them in the containers webserver?

Thanks!

micalm commented 1 year ago

+1 - WYL is also useful in airgapped networks. Modifying a single line and downloading a bundle when building with a specific option could be a solution.

aceberg commented 1 year ago

Ok, I'll think of a way to solve this in next release

aceberg commented 1 year ago

I have to admit, I don't know how to fix this yet.

I added -b option for local path to bootstrap and created Dockerfile.css which downloads all necessary files, but the app still can't work offline. Paths in header.html are edited, of course.

I'll research this topic further in the next versions.

701josh commented 1 year ago

I'd love to see a custom CSS option!

aceberg commented 1 year ago

Hi! I created a separate container for all stuff from cdn (fonts were a bit tricky). Here is a guide, how to install it: https://github.com/aceberg/WatchYourLAN#local-network-only

Please, donate, if you can. It will give me more time for Open Source projects)).