From c5d5801b90e172e9243477851d0449e468f74849 Mon Sep 17 00:00:00 2001 From: sia Date: Mon, 25 Nov 2024 02:39:22 +0800 Subject: [PATCH] listen addr change --- Dockerfile | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a215b0..d48efef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,5 +36,5 @@ ENV TZ Asia/Shanghai WORKDIR /app COPY --from=Gobuilder /app/gitproxy /app/gitproxy -COPY --from=builder /app/out /app/ +COPY --from=builder /app/out /app/out/ CMD ["./gitproxy"] \ No newline at end of file diff --git a/main.go b/main.go index 9f06033..3659641 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ func main() { router := router.NewRouter() srv := &http.Server{ Handler: handler.NewHandler(router), - Addr: "127.0.0.1:8888", + Addr: "0.0.0.0:8888", WriteTimeout: 15 * time.Second, ReadTimeout: 15 * time.Second, }