Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/horizon.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
],

'ssh' => [
'connection' => 'redis',
'connection' => 'ssh',
'queue' => ['ssh'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
Expand All @@ -208,7 +208,7 @@
'maxJobs' => env('HORIZON_SSH_MAX_JOBS', 0),
'memory' => env('HORIZON_SSH_MEMORY', 128),
'tries' => env('HORIZON_SSH_TRIES', 1),
'timeout' => env('HORIZON_SSH_TIMEOUT', 600),
'timeout' => env('HORIZON_SSH_TIMEOUT', 1200),
'nice' => env('HORIZON_SSH_NICE', 0),
Comment thread
RichardAnderson marked this conversation as resolved.
],

Expand Down
6 changes: 3 additions & 3 deletions config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
'ssh' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'timeout' => 600,
'retry_after' => 600,
'queue' => 'ssh',
'timeout' => 1200,
'retry_after' => 1260,
'block_for' => null,
'after_commit' => false,
],
Expand Down
6 changes: 3 additions & 3 deletions resources/views/ssh/os/install-dependencies.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common curl zip unzip git gcc openssl ufw cron
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y software-properties-common curl zip unzip git gcc openssl ufw cron
git config --global user.email "{{ $email }}"
git config --global user.name "{{ $name }}"

# Install Mise
sudo install -dm 755 /etc/apt/keyrings
curl -fsSL https://mise.jdx.dev/gpg-key.pub | sudo tee /etc/apt/keyrings/mise-archive-keyring.pub 1> /dev/null
echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=$(dpkg --print-architecture)] https://mise.jdx.dev/deb stable main" | sudo tee /etc/apt/sources.list.d/mise.list
sudo apt update
sudo apt install -y mise
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y mise
2 changes: 1 addition & 1 deletion resources/views/ssh/os/upgrade-kernel.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get clean
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get dist-upgrade -y
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade -y
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get autoremove -y
2 changes: 1 addition & 1 deletion resources/views/ssh/os/upgrade.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get clean
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get upgrade -y
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -y
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get autoremove -y
Loading