diff --git a/Caddyfile b/Caddyfile index d38dc2f..f1bedbe 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,4 +1,4 @@ -adam.id.au { +adam.au { root * /w/homepage/latest import file-server-defaults @@ -8,3 +8,11 @@ adam.id.au { import static-long-expiry } +adam.id.au { + handle_path / { + redir https://adam.au 301 + } + + import ssl-cloudflare-dns + import strict-transport-security +} diff --git a/deploy b/deploy index bb423ec..bc16c5a 100755 --- a/deploy +++ b/deploy @@ -3,6 +3,6 @@ set -e set -x -rm -rf dist && nr build +rm -rf dist && nrr build curl -s https://deploy.adam.id.au:4443/client.mjs > /tmp/client.mjs DEPLOY_PATH=dist DEPLOY_PROJECT=homepage DEPLOY_CADDYFILE=Caddyfile node /tmp/client.mjs diff --git a/src/index.html b/src/index.html index 542dba2..7e05429 100644 --- a/src/index.html +++ b/src/index.html @@ -5,6 +5,7 @@ Adam Burgess +