Moving DWC to a different port / path
-
This is a follow up to DWC + Octoprint on RPi + Duet3?. I want to achive the same thing. The reason are plugins that don't exist yet on DWC. The two that I'm looking for are
- TheSpaghettiDetective for AI monitoring of prints and
- Canvas / Palette 2 so that I can print multicolour with my Mosaic Palette 2S Pro.
I'm not here to discuss the pros and cons, those have been stated in the above thread. If someone wants to contact me to work on integrating those plugins into DWC, I'd be game.
That said, one of the problems encountered is the clash between Octoprint and DWC both wanting to open port 80. So my question is, how do I change the URL root for DWC from http://localhost/* to http://localhost:8080/dwc/* ?
-
you don't need to move it to a sub folder if you move the port number.
you could try editing /opt/dsf/config/http.json
https://github.com/Duet3D/DuetSoftwareFramework#duetwebserver
(i spent 5 min with the ms docs and failed, but you might have more motivation..)
-
@bearer said in Moving DWC to a different port / path:
you don't need to move it to a sub folder if you move the port number.
you could try editing /opt/dsf/config/http.json
https://github.com/Duet3D/DuetSoftwareFramework#duetwebserver
(i spent 5 min with the ms docs and failed, but you might have more motivation..)
edit: hm, it did work to change the port number at least, I just dismissed it due to other errors in the log.
"Kestrel": { "Endpoints": { "Http": { "Url": "http://*:8080" } } },
if you need the /dwc/ bit as well, maybe do some digging or use nginx or something
-
@bearer Excellent. It's a start. With that at least I can put it behind the haproxy Octoprint is using itself. Thanks!