diff --git a/website/Caddyfile b/website/Caddyfile index b8e05f69..48696fc9 100644 --- a/website/Caddyfile +++ b/website/Caddyfile @@ -18,6 +18,10 @@ } root * /usr/share/caddy + + # Serve clean URLs for landing pages, e.g. /hub -> hub.html. + try_files {path}.html + file_server log } diff --git a/website/Dockerfile b/website/Dockerfile index 469d2850..ca2fd98d 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -28,4 +28,4 @@ COPY --from=prod /opt/docusaurus/build /usr/share/caddy # Copy the landing page assets. COPY landing/images /usr/share/caddy/images COPY landing/js /usr/share/caddy/js -COPY landing/index.html landing/style.css /usr/share/caddy/ +COPY landing/index.html landing/hub.html landing/style.css /usr/share/caddy/