add localhost config for travis-ci