Allow to pass port using an environment variable (#44)

This commit is contained in:
Juan Carlos García del Canto
2021-10-27 14:51:23 +02:00
committed by GitHub
parent 09cbe40f67
commit 04e535038e
2 changed files with 10 additions and 2 deletions

View File

@ -22,7 +22,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)
- `port`: give me a port number. (it can be also defined with `WHOAMI_PORT` environment variable) (default: 80)
- `name`: give me a name. (it can be also defined with `WHOAMI_NAME` environment variable)
## Examples