Let's add Heimdall as a custom plugin!
Add a custom link Name: Links, URI: /custom/xcustom_heimdall.php, Icon: link, location: Side Nav
In the "custom" directory, add a file with the name "xcustom_heimdall.php" with the following code
<?php
// Configuration & core
require_once "../config.php";
require_once "../functions.php";
require_once "../includes/router.php";
require_once "../includes/check_login.php";
// Page setup
require_once "../includes/page_title.php";
// Layout UI
require_once "../includes/header.php";
require_once "../includes/top_nav.php";
require_once "../user/includes/get_side_nav_counts.php";
require_once "../user/includes/side_nav.php";
// Wrapper & alerts
require_once "../includes/inc_wrapper.php";
require_once "../includes/inc_alert_feedback.php";
require_once "../includes/filter_header.php";
// Declare UI links
$base_url = '/user/';
?>
<!-- Repair UI links -->
<base href="<?php echo $base_url; ?>">
<!-- Custom Styles -->
<link rel="stylesheet" type="text/css" href="../custom/xcustom_heimdall/public/css/app.css">
<div id="display" class="myCustom1">
<?php require('../custom/xcustom_heimdall/public/index.php'); ?>
</div>
<?php
require_once "../includes/footer.php";
?>
In the "custom" directory add a directory named "xcustom_heimdall", upload the Heimdall files to it. you can find them here: linuxserver/Heimdall
Add the following code to NGINX (if using NGINX). You can create a similar rewrite rule in .htaccess if using Apache
location /custom/xcustom_heimdall.php {
try_files $uri $uri/ /custom/xcustom_heimdall.php?$query_string;
}
All done. What doesn't work:
- All of the top bar navigation that isn't a custom link
- Heimdall can be seen but not configured without signing into ITFlow
- The ITFlow CSS breaks if you click on a Heimdall query string. Example: "xcustom_heimdall.php/items". This is not a deal breaker since Heimdall won't be configured as often as it will be used.