Update configuration based on environment.

Signed-off-by: crynobone <crynobone@gmail.com>