add info on how to deploy new site to panel home page

This commit is contained in:
Matthew Saunders Brown 2024-04-03 10:00:30 -07:00
parent 3a1356d687
commit 31c87e65af
2 changed files with 61 additions and 1 deletions

View File

@ -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');
}

View File

@ -1,5 +1,61 @@
<include href="header.html" />
Welcome to {{@PACKAGE}}!
<h2>Welcome to {{@PACKAGE}}!</h2>
<h3>To deploy a new site:</h3>
<br>
<ol>
<check if="{{ @VDNSADMIN=='1' }}">
<true>
<li><a href="{{@BASE}}/DNS/Add">Add DNS</a><br>
<small>It may take a few minutes for DNS to begin working after being added to the system.</small>
</li>
</true>
<false>
<li>Add DNS<br>
This system does not have integrated DNS.<br>
You need to manually add DNS for your domain.<br>
Point your domain to the IP {{ @default_ip }}.<br>
An example of a minimal DNS setup is:<br>
<br>
<table>
<tr>
<th>Name</th>
<th>Type</th>
<th>Value</th>
</tr>
<tr>
<td>example.com</td>
<td>A</td>
<td>{{@default_ip}}</td>
</tr>
<tr>
<td>www.example.com</td>
<td>CNAME</td>
<td>example.com</td>
</tr>
<tr>
<td>example.com</td>
<td>MX</td>
<td>mail.example.com</td>
</tr>
<tr>
<td>mail.example.com</td>
<td>A</td>
<td>{{@default_ip}}</td>
</tr>
</table>
<br>
<small>The Website & Email pages for the domain will provide additional required DNS settings as needed.</small>
</li>
</false>
</check>
<li><a href="{{@BASE}}/Websites/Add">Add Website</a><br>
<small>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.</small>
</li>
<li><a href="{{@BASE}}/Email/Add">Add Email</a><br>
<small>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.
</li>
</ol>
<include href="footer.html" />