Nacelle

Go service framework
/

Abstract HTTP server environment variable configuration

Environment variables available to the Nacelle process change the behavior of the HTTP server.


Environment VariableDefaultDescription
HTTP_HOST0.0.0.0The host on which to accept connections.
HTTP_PORT5000The port on which to accept connections.
HTTP_CERT_FILEThe path to the TLS cert file.
HTTP_KEY_FILEThe path to the TLS key file.
HTTP_SHUTDOWN_TIMEOUT5The time (in seconds) the server can spend in a graceful shutdown.
Notes

The environment variables HTTP_CERT_FILE and HTTP_KEY_FILE are mutual and must both be set (if set). Setting these will start a TLS server.