Backport stub_default_url_options from EE
Backport stub_default_url_options from EE

Used in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5782

dreampet/gitlab,axilleas/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,iiet/iiet-git,mmkassem/gitlabhq,iiet/iiet-git,dreampet/gitlab,stoplightio/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,stoplightio/gitlabhq