Add templates for the API port and host