mirror of
https://github.com/dstotijn/hetty
synced 2024-11-25 13:10:19 +00:00
Change default port to :8080
This commit is contained in:
parent
8b04747855
commit
5c7165ebf3
5 changed files with 4 additions and 9 deletions
|
@ -25,4 +25,4 @@ COPY --from=node-builder /app/dist admin
|
|||
|
||||
ENTRYPOINT ["./hetty", "-adminPath=./admin"]
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
BIN
hetty.db
Normal file
BIN
hetty.db
Normal file
Binary file not shown.
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue