SourceGraph does not work in an air-gapped environment

Summary

We set up sourcegraph and "connected" it to an air-gapped instance but it requires importing the sourcegraph/server docker image into the offline registry, then using keyboard/monitor on the airgap machine to configuring things like externalURL and corsOrigin inside the Sourcegraph web UI, and it would require to require DNS config and self-signed certificates to actually work in an airgap/offline environment. Sourcegraph also runs its own db and webserver, both of which should use HTTPS to encrypt traffic.

Steps to reproduce

Turn on SourceGraph integration in an air-gapped network (one without internet connection)

Example Project

@greg has a project where he tried this, but it is air-gapped and not available on GitLab.com

What is the current bug behavior?

SourceGraph does not work

What is the expected correct behavior?

SourceGraph should work if we have access to the sourcegraph docker image on the air-gapped network -- this may be only a documentation issue similar to #11520 (closed)

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)