Test plan for nginx
View options
- Truncate descriptions
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
.
-
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'
-
Start up Sourcegraph server on the latest insiders.
-
Find the TLS documentation and enable HTTPS. Visit https://sourcegraph.example.dev:PORT. You should not receive any warnings.
-
Add HTTP redirection. Visit http://sourcegraph.example.dev:PORT and check if you are redirected.
-
Add HSTS. Ensure the below has output:
curl -vvv https://sourcegraph.example.dev:PORT 2>&1 | grep -i '< strict-transport-security:'

