SLA-725 support PORT and HOST environment for PaaS

/to @sam-github