Fix OpenSearch for enterprise mode
Created by: erzhtor
Closes https://github.com/sourcegraph/sourcegraph/issues/5627.
Description
OpenSearch didn't work for non-dotcom/cloud mode, because the endpoint was private.
How to test
sg start enterprise
- Try to add a search engine for the local Sourcegraph instance. See the issue described above.