FIX templates to support non-standard `http.port` setting

Closes #132