Add config for gc and http mode