Skip to content
Snippets Groups Projects
Closed Test plan for nginx
  • View options
  • Test plan for nginx

  • View options
  • Closed Issue created by Warren Gifford

    Created by: nicksnyder

    This test plan is meant to cover the new functionality introduced in #929.

    Imagine you have just spun up Sourcegraph server on an instance somewhere, and now want to enable HTTPS related features via the domain sourcegraph.example.dev.

    1. We want to test this in our local docker for convenience, so use mkcert to generate a certificate:

      brew install mkcert
      brew install nss # if you use firefox
      mkcert -install
      mkcert sourcegraph.example.dev
      sudo sh -c 'echo 127.0.0.1 sourcegraph.example.dev >> /etc/hosts'
    2. Start up Sourcegraph server on the latest insiders.

    3. Find the TLS documentation and enable HTTPS. Visit https://sourcegraph.example.dev:PORT. You should not receive any warnings.

    4. Add HTTP redirection. Visit http://sourcegraph.example.dev:PORT and check if you are redirected.

    5. Add HSTS. Ensure the below has output:

      curl -vvv https://sourcegraph.example.dev:PORT 2>&1 | grep -i '< strict-transport-security:'

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first