Compare commits

...

3 Commits

Author SHA1 Message Date
Matthew Saunders Brown
31c87e65af add info on how to deploy new site to panel home page 2024-04-03 10:00:30 -07:00
Matthew Saunders Brown
3a1356d687 route to website info page after adding new site 2024-04-03 09:59:27 -07:00
Matthew Saunders Brown
c578cae9f1 route to DNS zone info after adding zone to DNS 2024-04-03 09:59:07 -07:00
4 changed files with 63 additions and 3 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

@ -48,7 +48,7 @@ class ZonesAdd extends \Panel\Vdns {
if ($result_code == 0) {
$messages[] = "Zone (Domain Name) $zone has been added to DNS.";
$f3->set('SESSION.messages', $messages);
$f3->reroute("/DNS");
$f3->reroute("/DNS/$zone");
} else {
if (count($output) > 0) {
foreach ($output as $k=>$output_message) {

View File

@ -99,7 +99,7 @@ class VhostsAdd extends \Panel\Vhost {
$messages[] = "Note: New user is being jailed. Setting up the jail environment takes about a minute to complete and is being run in the background now.";
}
$f3->set('SESSION.messages', $messages);
$f3->reroute("/Websites");
$f3->reroute("/Websites/$domain");
} else {
$messages[] = "Error adding website.";
$f3->set('SESSION.messages', $messages);

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" />