allow localhost redirects with config value

fixes #144