Skip to content

Commit

Permalink
Change default port to :8080
Browse files Browse the repository at this point in the history
  • Loading branch information
dstotijn committed Sep 28, 2020
1 parent 8b04747 commit 5c7165e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ COPY --from=node-builder /app/dist admin

ENTRYPOINT ["./hetty", "-adminPath=./admin"]

EXPOSE 80
EXPOSE 8080
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $ docker run \
-v $HOME/.hetty/hetty_key.pem:/root/.hetty/hetty_key.pem \
-v $HOME/.hetty/hetty_cert.pem:/root/.hetty/hetty_cert.pem \
-v $HOME/.hetty/hetty.db:/app/hetty.db \
-p 127.0.0.1:8080:80 \
-p 127.0.0.1:8080:8080 \
dstotijn/hetty
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/hetty/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {
flag.StringVar(&caCertFile, "cert", "~/.hetty/hetty_cert.pem", "CA certificate filepath. Creates a new CA certificate is file doesn't exist")
flag.StringVar(&caKeyFile, "key", "~/.hetty/hetty_key.pem", "CA private key filepath. Creates a new CA private key if file doesn't exist")
flag.StringVar(&dbFile, "db", "hetty.db", "Database file path")
flag.StringVar(&addr, "addr", ":80", "TCP address to listen on, in the form \"host:port\"")
flag.StringVar(&addr, "addr", ":8080", "TCP address to listen on, in the form \"host:port\"")
flag.StringVar(&adminPath, "adminPath", "", "File path to admin build")
flag.Parse()

Expand Down
Binary file added hetty.db
Binary file not shown.
7 changes: 1 addition & 6 deletions modd.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
@db = hetty.bolt
@addr = :8080

**/*.go {
daemon +sigterm: go run ./cmd/hetty \
-db=@db \
-addr=@addr
daemon +sigterm: go run ./cmd/hetty
}

0 comments on commit 5c7165e

Please sign in to comment.