set maxAge
use env host port