Offline libraries in frontend
ckk90 opened this issue · 4 comments
Describe the bug
Over the last days out network has been cut off the internet due to ISP failure. I noticed that Ravada frontend is loading several java script libraries (and some css) from CDNs. In this situation, the ravada frontend was not operational without the ability to load these libraries. Consequence: No VMs could be started, stopped, logon .vv or links were not displayed and also iptables rules were not updated. All in all, serious usability issues were encountered, machines could only be accessed through manual effort.
To Reproduce
Steps to reproduce the behavior:
- Disable internet connection
- Ensure browser cache is flushed
- Open Ravada http(s) frontend.
Expected behavior
When the libraries could be delivered through the local frontend infrastructure, instead of loading them from external cdns, ruggedness of the vdi environment could be achieved also in cases of ISP / CDN outage, or in encapsulated networks. I think this would require a small effort on the programming side, but would massively improve reliability.
Screenshots
I can provide chrome console snapshots tomorrow.
Server (please complete the following information):
- OS: Debian stable
- Browser Chrome
- Ravada Version 2.0.3
Client (please complete the following information):
- Browser: chrome (tested)
- OS: any
- Spice client version current stable
Additional context
I any case I can only emphasise once more that Ravada is an outstanding project and this feedback is only an input which hopefully helps to provide some ideas for further improvement. Thanks for your great work!
Hello @ckk90 I am sorry we missed your request yesterday. Have you tried using the fallback parameter in the frontend. Here are the instructions:
https://ravada.readthedocs.io/en/latest/docs/local_resources.html
Thank you very much @frankiejol , and sorry for not studying the docs throughly enough. That's exactly the option which we require.
Great @ckk90 I reopen to add some text so this is easier to find.