summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/ota.nix
blob: f2f931d21df0cd0a391d2026864a45d3db32c4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  # mosquitto_pub -t /bam/sonoffs/cmnd/OtaUrl -m "http://192.168.8.11/sonoff.bin"
  # mosquitto_pub -t /bam/sonoffs/cmnd/upgrade -m "6.5.0"
  # wget https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.5.0/sonoff.bin
  # wget https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.5.0/sonoff-minimal.bin
  services.nginx = {
    enable = true;
    virtualHosts."192.168.8.11" = {
      root = "/var/www/tasmota";
      extraConfig = ''
          autoindex on;
      '';
    };
  };
}