From 31c87e65aff3bcd09b9d48edc099be351ce9b1ed Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 3 Apr 2024 10:00:30 -0700 Subject: [PATCH] add info on how to deploy new site to panel home page --- panel/classes/Panel.php | 4 +++ panel/ui/home.html | 58 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/panel/classes/Panel.php b/panel/classes/Panel.php index 2d7d6a7..29e73ad 100644 --- a/panel/classes/Panel.php +++ b/panel/classes/Panel.php @@ -56,6 +56,10 @@ class Panel { } public static function get($f3) { + /* If DNS admin is not enabled we need to display the server IP to be used for DNS settings */ + if ($f3->get('VDNSADMIN') != '1') { + $f3->set('default_ip', $f3->get('SERVER.SERVER_ADDR')); + } echo \Template::instance()->render('home.html'); } diff --git a/panel/ui/home.html b/panel/ui/home.html index 10e072a..f8cfaf4 100644 --- a/panel/ui/home.html +++ b/panel/ui/home.html @@ -1,5 +1,61 @@ -Welcome to {{@PACKAGE}}! +

Welcome to {{@PACKAGE}}!

+ +

To deploy a new site:

+
+
    + + +
  1. Add DNS
    + It may take a few minutes for DNS to begin working after being added to the system. +
  2. +
    + +
  3. Add DNS
    + This system does not have integrated DNS.
    + You need to manually add DNS for your domain.
    + Point your domain to the IP {{ @default_ip }}.
    + An example of a minimal DNS setup is:
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeValue
    example.comA{{@default_ip}}
    www.example.comCNAMEexample.com
    example.comMXmail.example.com
    mail.example.comA{{@default_ip}}
    +
    + The Website & Email pages for the domain will provide additional required DNS settings as needed. +
  4. +
    +
    +
  5. Add Website
    + After adding a website you will be prompted to add a Security Certificate and will be provided with access info for SFTP, MySQL, et cetera. +
  6. +
  7. Add Email
    + After enabling email for a domain you will be prompted to add a Security Certificate & DKIM, will be able to immediately begin adding email accounts, and will be provided with all required access info for email clients and webmail. +
  8. +