diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3558c56 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin/ +build/ diff --git a/Makefile b/Makefile index 443ca4c..0eb5e22 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/config/octoprint/docker-compose.yml b/config/octoprint/docker-compose.yml index 7c149a5..812b564 100644 --- a/config/octoprint/docker-compose.yml +++ b/config/octoprint/docker-compose.yml @@ -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 diff --git a/src/main.go b/src/main.go index f7e1bee..2994cc5 100644 --- a/src/main.go +++ b/src/main.go @@ -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)) } diff --git a/webui/index.html b/webui/index.html index f8f9d5d..0d5a19a 100644 --- a/webui/index.html +++ b/webui/index.html @@ -138,7 +138,7 @@