backup_private

This commit is contained in:
devdatt 2025-12-24 10:41:57 +05:30
parent f02683119d
commit 76952d61fe
5 changed files with 8 additions and 8 deletions

View File

@ -30,8 +30,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$tmpZip = sys_get_temp_dir() . '/backup.zip';
$outputFile = __DIR__ . '/universal_encoder_decoder.bin';
$publicKey = file_get_contents('/var/www/public.pem');
$publicKey = file_get_contents('/var/www/public.pem');
$publicKey = file_get_contents('/var/www/backup_private.pem');
$publicKey = file_get_contents('/var/www/backup_public.pem');
$zip = new ZipArchive();
$zip->open($tmpZip, ZipArchive::CREATE | ZipArchive::OVERWRITE);
@ -92,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$restoreDir = __DIR__ . '/var/www/encoder/';
$tmpZip = sys_get_temp_dir() . '/restore.zip';
$privateKey = file_get_contents(__DIR__ . '/keys/private.pem');
$privateKey = file_get_contents('/var/www/backup_private.pem');
if (!file_exists($inputFile)) {
die("Backup file not found\n");
@ -128,7 +128,7 @@ include 'header.php';
Device Licence Info :- <br>
Device ID :- <?php echo trim(file_get_contents('/sys/class/dmi/id/product_uuid')); ?><br>
Reseller ID :- <br>
Project Name :- <br>
Project Name :- Universal Digital Encoder / Decoder<br>
</div>
<div class="card wide">
<form method="post" class="form-center" enctype="multipart/form-data"

View File

@ -8,7 +8,7 @@ $defaults = [
'resolution' => '1920x1080',
'audio_source' => 'hw:1,0',
'framerate' => '30',
'video_delay' => '300',
'video_delay' => '',
'audio_delay' => ''
],
'url' => 'https://cdn.urmic.org/unavailable.mp4',
@ -29,7 +29,7 @@ $defaults = [
'framerate' => '30',
'gop' => '30',
'audio_db_gain' => '0dB',
'audio_data_rate' => '256k',
'audio_data_rate' => '128k',
'audio_sample_rate' => '48000',
'extra' => ''
],

View File

@ -389,8 +389,8 @@ sudo mkdir -p /var/www/html/dash/shreeshree;
sudo mkdir -p /var/www/encoder;
sudo cp -r html/* /var/www/html/
sudo cp -r encoder/* /var/www/encoder/
sudo cp private.pem /var/www/
sudo cp public.pem /var/www/
sudo cp backup_private.pem /var/www/
sudo cp backup_public.pem /var/www/
sudo cp 00-stream.yaml /var/www/
sudo a2enmod ssl