enterprise-hello-world
Building
go build .
Running
./enterprise-hello-world
or
go run .
Configuration
The following environment variables are supported:
Environment variable | Description | Default value |
---|---|---|
HELLOWORLD_PORT |
Server port. | 8080 |
HELLOWORLD_MESSAGERECEIVER |
Whatever to use in the hello world message according to the following pattern: Hello, {messagereceiver}! |
World |
HELLOWORLD_USERNAME |
Username to use for Basic auth. | admin |
HELLOWORLD_PASSWORD |
Password to use for Basic auth. | admin |
Heartbeat
Heartbeat is located at /ping
Why?
I made this to get more familiar with Go and for fun.