Skip to content

Commit

Permalink
listen addr change
Browse files Browse the repository at this point in the history
  • Loading branch information
Sianao committed Nov 24, 2024
1 parent 6024f94 commit c5d5801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit c5d5801

Please sign in to comment.