diff --git a/docs/extending-the-server/custom-views.md b/docs/extending-the-server/custom-views.md new file mode 100644 index 0000000..c0a642a --- /dev/null +++ b/docs/extending-the-server/custom-views.md @@ -0,0 +1,18 @@ +--- +title: Custom Views +order: 3 +--- + +# Custom Views + +## Homepage + +The expose server allows you to modify the "homepage" of your server. This is the website that will be shown to your users when you access your server without any subdomain. + +To customize it, clone the repository and modify the file located at `resources/views/homepage.twig`. + +## 404 - Tunnel not found + +Just like the homepage, you can also modify 404 views in case someone tries to access a subdomain that is not registered on the expose server. + +To customize the error view, clone the repository and modify the file located at `resources/views/errors/404.twig`. diff --git a/resources/views/server/errors/404.twig b/resources/views/server/errors/404.twig index 342b72b..c7e89e5 100644 --- a/resources/views/server/errors/404.twig +++ b/resources/views/server/errors/404.twig @@ -1 +1,43 @@ -The tunnel {{ subdomain }} was not found. + + +
+ +Expose - a BeyondCode product
+ ++ The tunnel "{{ subdomain }}" was not found on this Expose server. +
++ Do you want to host your own Expose server? Check out the official documentation. +
+Expose - a BeyondCode product
+ ++ Do you want to host your own Expose server? Check out the official documentation. +
+