diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-05-13 08:53:07 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-05-13 08:57:51 +0300 |
commit | 5d1c903638335cf5397ef34500c1a61f62586bd3 (patch) | |
tree | 7ad539c1c908df24e51fcaabc89aee744b9fe163 /ewww.md | |
parent | d32125b1bfcd360d70b68a2db5942848ac6c6dcf (diff) | |
download | ewww-5d1c903638335cf5397ef34500c1a61f62586bd3.tar.gz |
feat: use TLS unconditionally
Later on, we'll need to support non-TLS as well, for Let's Encrypt,
but this'll do for now.
Diffstat (limited to 'ewww.md')
-rw-r--r-- | ewww.md | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -88,21 +88,23 @@ for static content only. Every other method returns an error. ## Minimal smoke test ~~~scenario -given a running server using config file minimal.yaml -when I request GET http://example.com/ +given a self-signed certificate as snakeoil.pem, using key snakeoil.key +and a running server using config file minimal.yaml +when I request GET https://example.com/ then I get status code 200 ~~~ ~~~{#minimal.yaml .file .yaml} -hosts: - - example.com +tls_key: snakeoil.key +tls_cert: snakeoil.pem ~~~ ## Smoke test ~~~scenario -given a running server using config file smoke.yaml +given a self-signed certificate as snakeoil.pem, using key snakeoil.key +and a running server using config file smoke.yaml when I create webroot/foo with "hello, world" and I request GET https://example.com/foo then I get status code 200 @@ -143,12 +145,8 @@ scaffolding adds randomly chosen port numbers so that the test can run without being root. ~~~{#smoke.yaml .file .yaml .numberLines} -webroot: webroot -hosts: - - example.com - - www.example.com -tlscert: snakeoil.pem -tlskey: snakeoil.key +tls_cert: snakeoil.pem +tls_key: snakeoil.key ~~~ ## Performance test |