--- /dev/null
+[Interface]
+Address = 10.13.13.7
+PrivateKey = MO/lA/rCVwT87s47Z17OKzDuZdP0GP3PEm1AZv4GFn4=
+ListenPort = 51820
+DNS = 10.13.13.1, 1.1.1.1
+
+[Peer]
+PublicKey = fLe8zDGbY78GH3MJpytrbIX8uKsx03t7yZ5s1pnhfl0=
+PresharedKey = SUKvrBR6LoBmK5701Bvm29B3r+Pphv6slYq1DAji+XM=
+Endpoint = 130.180.213.67:51820
+AllowedIPs = 192.168.10.0/24, 192.168.10.1/32
# PHP
- '/home/toolbox/www/.docker/config/php/php.ini:/etc/php/8.2/fpm/conf.d/99-overrides.ini'
- '/home/toolbox/www/.docker/config/php/fpm.conf:/etc/php/8.2/fpm/pool.d/z-overrides.conf'
+ # Wireguard
+ - '/home/toolbox/www/.docker/config/wireguard/wg0.conf:/etc/wireguard/wg0.conf'
# PROD
- '/home/toolbox/dev/:/application/dev/'
- '/data/toolbox/dev/storage/:/application/dev/storage/'
#!/bin/sh
cd /docker/fluidbook-toolbox
+apt install wireguard -y
+mkdir -p /etc/wireguard;cp /home/toolbox/www/.docker/config/wireguard/wg0.conf /etc/wireguard/cubedesigners.conf
+wg-quick down cubedesigners
+wg-quick up cubedesigners
docker plugin install ucphhpc/sshfs --grant-all-permissions
chown root:root /home/toolbox/www/.docker/config/cron/host;ln -sf /home/toolbox/www/.docker/config/cron/host /etc/cron.d/toolbox
chown root:root /home/toolbox/www/.docker/config/sudoers
$makensis->setArg(null, '-V4');
$makensis->setArg(null, $tmp);
$makensis->execute();
+ $makensis->debug();
$out=$this->getPathBase('exe');
$cli = new CommandLine('/application/bin/mount.sh');
$cli->setSudo(true);
$cli->execute();
+ $cli->debug();
$rand = 'sign-' . hash_file('sha256', $source) . '.exe';
$remote = '/mnt/sign/' . $rand;
$local = $this->book->protected_path('signedexe/' . $rand);
- if (!file_exists($local)) {
+ if (true || !file_exists($local)) {
+ debug('Copy ' . $source . ' to ' . $remote);
$ssh = new SSH2('192.168.10.176', 'vince', 'Y@mUC9mY2DOYWXkN');
copy($source, $remote);
// $sectigo_cert = 'Cubedesigners.cer';
$sectigo_cert = 'Cubedesigners2024-2027.cer';
- $cli = new CommandLine('C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/signtool.exe');
- $cli->setManualArg("sign /f C:/Users/vince/OneDrive/Documents/" . $sectigo_cert . " /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a C:/Sign/$rand");
+ $cli = new CommandLine('C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/signtool.exe');
+ // https://stackoverflow.com/a/54439759
+ $cli->setManualArg("sign /debug /f C:/Users/vince/OneDrive/Documents/" . $sectigo_cert . " /csp \"eToken Base Cryptographic Provider\" /k \"[SafeNet Token JC 0{{^!wBa^pc82&UyfU8}}]=Sectigo_20241122100836\" /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a C:/Sign/$rand");
$cli->execute($ssh);
$cli->debug();
if (!stristr($cli->getOutput(), 'Successfully signed')) {
+++ /dev/null
-<?php
-
-namespace App\Fluidbook\Packager;
-
-use App\Services\WorkshopV2;
-
-class WorkshopPackager extends Packager
-{
- protected $version;
-
- protected static $_versionMap = [
- 'online' => 'html',
- ];
-
- public function __construct($book_id, $version, $vdir = null, $options = [])
- {
- parent::__construct($book_id, $vdir, $options);
- $this->version = $version;
- }
-
- public function makePackage($zip)
- {
-
- $ws = new WorkshopV2();
- $ws->login($this->getUser()->email, $this->getUser()->api_token);
- $version = self::$_versionMap[$this->version] ?? $this->version;
- $this->setFinalURL($ws->getDownloadBookURL($this->book_id, $version));
- }
-}