Reorder port usage

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn
2025-09-11 08:10:59 +02:00
parent 782e673686
commit 355ee97c17
5 changed files with 6 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
bin/
build/

View File

@@ -16,7 +16,7 @@ all: service
.PHONY: service
service:
mkdir -p bin
mkdir -p build/bin
cd src && go build -o ../$(BIN_FILE)
.PHONY: clean

View File

@@ -5,7 +5,7 @@ services:
image: octoprint/octoprint
restart: unless-stopped
ports:
- 80:80
- 8082:80
devices:
# use `python -m serial.tools.miniterm` to see what the name is of the printer, this requires pyserial
- /dev/ttyUSB0:/dev/ttyUSB0

View File

@@ -34,7 +34,7 @@ func main() {
apiservice_printer.AddHandler()
apiservice_relay.AddHandler()
port := ":5005"
port := ":80"
http.Handle("/", http.FileServer(http.Dir(webui_path)))
logger.Fatal(http.ListenAndServe(port, nil))
}

View File

@@ -138,7 +138,7 @@
<td id="container_status"></td>
</tr>
</table>
<a href="http://p4:80" target="_blank">Octoprint</a>
<a href="http://p4:8082" target="_blank">Octoprint</a>
<br>
<a href="http://p4:8080" target="_blank">Camera</a>
</div>