feat: add a name to be more human friendly. (#29)
This commit is contained in:
committed by
GitHub
parent
741a054a0c
commit
c4809bbe21
@ -23,6 +23,7 @@ Tiny Go webserver that prints os information and HTTP request to output
|
||||
- `cert`: give me a certificate.
|
||||
- `key`: give me a key.
|
||||
- `port`: give me a port number. (default: 80)
|
||||
- `name`: give me a name. (it can be also defined with `WHOAMI_NAME` environment variable)
|
||||
|
||||
## Examples
|
||||
|
||||
@ -63,3 +64,7 @@ $ curl -v http://localhost:80/health
|
||||
< Date: Mon, 16 Sep 2019 22:52:40 GMT
|
||||
< Content-Length: 0
|
||||
```
|
||||
|
||||
```console
|
||||
docker run -d -P -v ./certs:/certs --name iamfoo containous/whoami --cert /certs/cert.cer --key /certs/key.key
|
||||
```
|
||||
|
Reference in New Issue
Block a user