set hostname from environment during setup
correct cert template
set default backend