Updated v2: Config from Scratch (markdown)

Matt Holt 2019-07-12 10:17:01 -06:00
parent de96b8bacc
commit 58e757ac37

@ -31,10 +31,10 @@ This is a static file server out of the the `/var/www` directory:
"listen": [":80"], "listen": [":80"],
"routes": [ "routes": [
{ {
"respond": { "handle": [{
"responder": "file_server", "handler": "file_server",
"root": "/var/www" "root": "/var/www"
} }]
} }
] ]
} }
@ -56,10 +56,10 @@ And this is the same, but with automatic HTTPS (notice that we now serve on the
"routes": [ "routes": [
{ {
"match": [{"host": ["example.com"]}], "match": [{"host": ["example.com"]}],
"respond": { "handle": [{
"responder": "file_server", "handler": "file_server",
"root": "/var/www" "root": "/var/www"
} }]
} }
] ]
} }