add root path and config for environments
make socket cross domain