Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.08 KB

TODO.md

File metadata and controls

27 lines (22 loc) · 1.08 KB

TOOD

Nats Client

  • wake on lan to start the nas back up when the power comes back on
  • Instead of just shutting down the pis when the last one acks, use the acks to determine how many pis are responsive. Then poll the responsive pis with https://pkg.go.dev/github.com/tatsushid/go-fastping#section-readme to see if they're still alive. If they're not, then shut down the rest of the pis.
    • Set a timeout on the ping of 10 seconds. That's around what's needed to let them finish shutting down after they stop responding.
    • This will probably need lots of goroutines, see if its necessary to make things multithreaded. Go is singlethreaded by default.

SSL updater

Use Cases

  • TrueNAS
    • Can likely be done via API: /certificate & /system/general
      1. Upload cert via /certificate. Get ID of what you just uploaded
      2. Update /system/general with the ID of the cert you just uploaded
  • GitLab
    • Needs to be done through SSH
      1. Copy new certs over
      2. Run sudo gitlab-ctl hup nginx
        sudo gitlab-ctl hup registry
  • Unifi
    • idk, likely SSH
  • HASS
    • idk, likely API