Browse Source

update olivetin config for chloe-nas

Blaine Story 3 weeks ago
parent
commit
f375ee2efc
1 changed files with 39 additions and 6 deletions
  1. 39 6
      roles/olivetin/files/config.yaml_chloe-nas

+ 39 - 6
roles/olivetin/files/config.yaml_chloe-test-centos10 → roles/olivetin/files/config.yaml_chloe-nas

@@ -13,17 +13,27 @@ checkForUpdates: false
 
 # Docs: https://docs.olivetin.app/action_execution/create_your_first.html
 actions:
-  - title: Restart VPN
-    shell: nordvpn c
-    timeout: 10
-    icon: ssh
-    popupOnStart: execution-dialog-stdout-only
+  - title: Download YouTube Video
+    shell: podman run --rm -v /storage/Videos/YouTube:/storage/Videos/YouTube:z --user 1558 yt-dlp "{{ url }}"
+    icon: <iconify-icon icon="vaadin:youtube"></iconify-icon>
+    timeout: 1800 # 30 minutes
+    popupOnStart: execution-dialog
+    arguments:
+      - name: url
+        type: url
+
+
+  - title: Update YouTube Downloader
+    shell: podman build /srv/containers/yt-dlp -t yt-dlp --no-cache
+    timeout: 300
+    icon: "&#128640;" # rocket
+    popupOnStart: execution-dialog
 
 
   - title: Run SnapRAID Sync
     shell: snapraid sync
     maxConcurrent: 1
-    timeout: 6000
+    timeout: 21600 # 6 hours
     icon: backup
     popupOnStart: execution-dialog
 
@@ -42,6 +52,20 @@ actions:
           - value: homepage
 
 
+  - title: Restart VPN
+    shell: nordvpn c
+    timeout: 20
+    icon: ssh
+    popupOnStart: execution-dialog
+
+
+  - title: Enable Remote Assist (Stops VPN)
+    icon: 🛟
+    shell: nordvpn d && tailscale up
+    maxConcurrent: 1
+    timeout: 10
+
+
   - title: Reboot Server
     icon: ashtonished
     shell: systemctl reboot
@@ -49,3 +73,12 @@ actions:
     arguments:
       - type: confirmation
         title: Are you sure?!
+
+
+  - title: Poweroff Server
+    icon: 😴
+    shell: systemctl poweroff
+    popupOnStart: default
+    arguments:
+      - type: confirmation
+        title: Are you sure?