Skip to content

Commit

Permalink
rename env var prefix to KARABERUS and set default listen address in …
Browse files Browse the repository at this point in the history
…images
  • Loading branch information
odrling committed Jan 30, 2024
1 parent b07af9c commit 1553318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ RUN cd /karaberus && CGO_ENABLED=1 CC=clang go build -o build/ .
FROM alpine

COPY --from=builder /karaberus/build/karaberus /
ENV KARABERUS_LISTEN_ADDR="0.0.0.0:8888"
EXPOSE 8888
ENTRYPOINT ["/karaberus"]
2 changes: 1 addition & 1 deletion karaberus.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type UploadInput struct {
}

func getEnvDefault(name string, defaultValue string) string {
envVar := os.Getenv("KARAINC_" + name)
envVar := os.Getenv("KARABERUS_" + name)
if envVar != "" {
return envVar
}
Expand Down

0 comments on commit 1553318

Please sign in to comment.