Add support for injecting port and client path through env.