-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct hostname for gin sample and add compose file to run anyw…
…here to test (#111) * fix: zero missing in host * feat: provide compose file to run example * refactor: move env variables into file with examples filled in
- Loading branch information
Showing
4 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/build | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ENDPOINT=http://localhost:3001 | ||
APP_ID= | ||
APP_SECRET= | ||
RESOURCES=https://default.logto.app/api | ||
REDIRECT_URI=http://localhost:8080/sign-in-callback | ||
POST_SIGN_OUT_REDIRECT_URI=http://localhost:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
services: | ||
logto-go: | ||
build: | ||
context: . | ||
dockerfile_inline: | | ||
FROM golang:1.22-alpine | ||
RUN apk add git | ||
WORKDIR /app | ||
RUN git clone https://github.com/logto-io/go.git | ||
WORKDIR /app/go/gin-sample | ||
RUN go mod download | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o /logto-go | ||
command: /logto-go | ||
env_file: | ||
- .env | ||
ports: | ||
- 8080:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters