fix: rename WHOAMI_PORT to WHOAMI_PORT_NUMBER

k8s creates env var based on service name,
then WHOAMI_PORT exists and contains a URL instead of a number.
This commit is contained in:
Fernandez Ludovic
2021-12-03 18:49:47 +01:00
parent 28f833757e
commit a067f0ee4c
2 changed files with 2 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. (it can be also defined with `WHOAMI_PORT` environment variable) (default: 80)
- `port`: give me a port number. (it can be also defined with `WHOAMI_PORT_NUMBER` environment variable) (default: 80)
- `name`: give me a name. (it can be also defined with `WHOAMI_NAME` environment variable)
## Examples