Skip to content

Commit

Permalink
fix: listen to all internal interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Apr 25, 2024
1 parent 8659386 commit 870a2e6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy template

on:
push:
# push:
schedule:
- cron: "50 16 * * *"

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN go mod download

COPY . /app

RUN CGO_ENABLED=0 GOOS=linux go build main.go
RUN CGO_ENABLED=0 GOOS=linux go build -o main

EXPOSE 80

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ services:
ports:
- "8000:80"
volumes:
- ".:/app:rw"
- "./data:/data:rw"
Binary file removed main
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ func handler(w http.ResponseWriter, r *http.Request) {

func main() {
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":80", nil))
log.Fatal(http.ListenAndServe("0.0.0.0:80", nil))
}

0 comments on commit 870a2e6

Please sign in to comment.