From c59c279128dacf3f9341715039984ea93691c1d7 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Tue, 16 Jun 2020 00:37:56 +0200 Subject: [PATCH] wip --- docs/extending-the-server/custom-views.md | 18 ++++++++++ resources/views/server/errors/404.twig | 44 ++++++++++++++++++++++- resources/views/server/homepage.twig | 39 +++++++++++++++++++- 3 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 docs/extending-the-server/custom-views.md 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 - {{ subdomain }} + + + +
+
+ + + + + + + + + + + + +

Expose - a BeyondCode product

+
+
+
+

Uh oh!

+

+ The tunnel "{{ subdomain }}" was not found on this Expose server. +

+

+ Do you want to host your own Expose server? Check out the official documentation. +

+
+
+ + + diff --git a/resources/views/server/homepage.twig b/resources/views/server/homepage.twig index be8f157..39f1eaf 100644 --- a/resources/views/server/homepage.twig +++ b/resources/views/server/homepage.twig @@ -1,3 +1,40 @@ + -

Welcome to Expose

+ + + Expose - {{ subdomain }} + + + +
+
+ + + + + + + + + + + + +

Expose - a BeyondCode product

+
+
+
+

Welcome to Expose

+

+ Do you want to host your own Expose server? Check out the official documentation. +

+
+
+ +