diff --git a/.gitignore b/.gitignore index ae506d9..2f9becb 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ compose.yml +*.compose.yml config*/ certs*/ @@ -20,3 +21,4 @@ todo.md .*.swp .aider* mtrace.json +.env diff --git a/Dockerfile b/Dockerfile index 8b837f6..7234efa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Builder -FROM golang:1.23.1-alpine AS builder +FROM golang:1.23.2-alpine AS builder RUN apk add --no-cache tzdata make WORKDIR /src diff --git a/Makefile b/Makefile index 0581220..c1f85a5 100755 --- a/Makefile +++ b/Makefile @@ -30,6 +30,9 @@ get: debug: make build && sudo GOPROXY_DEBUG=1 bin/go-proxy +mtrace: + bin/go-proxy debug-ls-mtrace > mtrace.json + run-test: make build && sudo GOPROXY_TEST=1 bin/go-proxy diff --git a/README.md b/README.md index 7d38c58..8593ad7 100755 --- a/README.md +++ b/README.md @@ -72,13 +72,16 @@ _Join our [Discord](https://discord.gg/umReR62nRd) for help and discussions_ 4. Setup `docker-socket-proxy` other docker nodes _(if any)_ (see [Multi docker nodes setup](https://github.com/yusing/go-proxy/wiki/Configurations#multi-docker-nodes-setup)) and then them inside `config.yml` -5. Done. You may now do some extra configuration +5. Run go-proxy `docker compose up -d` + then list all routes to see if further configurations are needed: + `docker exec go-proxy /app/go-proxy ls-routes` + +6. You may now do some extra configuration - With text editor (e.g. Visual Studio Code) - With Web UI via `http://localhost:3000` or `https://gp.y.z` - For more info, [See Wiki]([wiki](https://github.com/yusing/go-proxy/wiki)) [🔼Back to top](#table-of-content) -| ### Use JSON Schema in VSCode diff --git a/compose.example.yml b/compose.example.yml index 7097eee..ebb865d 100755 --- a/compose.example.yml +++ b/compose.example.yml @@ -14,7 +14,7 @@ services: # Make sure the value is same as `GOPROXY_API_ADDR` below (if you have changed it) # # environment: - # NEXT_PUBLIC_GOPROXY_API_ADDR: 127.0.0.1:8888 + # GOPROXY_API_ADDR: 127.0.0.1:8888 app: image: ghcr.io/yusing/go-proxy:latest container_name: go-proxy diff --git a/examples/microbin.yml b/examples/microbin.yml index a59a34a..9ede3b5 100644 --- a/examples/microbin.yml +++ b/examples/microbin.yml @@ -7,7 +7,7 @@ services: limits: memory: 256M env_file: .env - image: docker.i.sh/danielszabo99/microbin:latest + image: danielszabo99/microbin:latest ports: - 8080 restart: unless-stopped diff --git a/go.mod b/go.mod index 1d9b072..e7a4495 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/yusing/go-proxy -go 1.23.1 +go 1.23.2 require ( github.com/coder/websocket v1.8.12 github.com/docker/cli v27.3.1+incompatible github.com/docker/docker v27.3.1+incompatible github.com/fsnotify/fsnotify v1.7.0 - github.com/go-acme/lego/v4 v4.19.0 + github.com/go-acme/lego/v4 v4.19.2 github.com/puzpuzpuz/xsync/v3 v3.4.0 github.com/santhosh-tekuri/jsonschema v1.2.4 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 2044e34..d4f7e02 100644 --- a/go.sum +++ b/go.sum @@ -29,8 +29,8 @@ github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2 github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/go-acme/lego/v4 v4.19.0 h1:c7YabBOwoa2URsPiCNGQsdzQnbd8Y23B4/66gxh4H7c= -github.com/go-acme/lego/v4 v4.19.0/go.mod h1:wtDe3dDkmV4/oI2nydpNXSJpvV10J9RCyZ6MbYxNtlQ= +github.com/go-acme/lego/v4 v4.19.2 h1:Y8hrmMvWETdqzzkRly7m98xtPJJivWFsgWi8fcvZo+Y= +github.com/go-acme/lego/v4 v4.19.2/go.mod h1:wtDe3dDkmV4/oI2nydpNXSJpvV10J9RCyZ6MbYxNtlQ= github.com/go-jose/go-jose/v4 v4.0.4 h1:VsjPI33J0SB9vQM6PLmNjoHqMQNGPiZ0rHL7Ni7Q6/E= github.com/go-jose/go-jose/v4 v4.0.4/go.mod h1:NKb5HO1EZccyMpiZNbdUw/14tiXNyUJh188dfnMCAfc= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= diff --git a/internal/docker/idlewatcher/html/loading_page.html b/internal/docker/idlewatcher/html/loading_page.html index d8eaf00..405d23b 100644 --- a/internal/docker/idlewatcher/html/loading_page.html +++ b/internal/docker/idlewatcher/html/loading_page.html @@ -66,22 +66,23 @@
- - + +