From 1286b2c21e4eeee6809fcd43ac73da8b4f515835 Mon Sep 17 00:00:00 2001
From: notohh <github@notohh.dev>
Date: Sun, 16 Feb 2025 06:06:39 -0500
Subject: [PATCH] sora: update s3

---
 home/profiles/tsuki/default.nix |  2 +-
 hosts/sora/services/attic.nix   |  2 +-
 hosts/sora/services/restic.nix  |  2 +-
 hosts/sora/services/traefik.nix | 11 -----------
 4 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/home/profiles/tsuki/default.nix b/home/profiles/tsuki/default.nix
index 7b48d2c..5a910a0 100644
--- a/home/profiles/tsuki/default.nix
+++ b/home/profiles/tsuki/default.nix
@@ -15,7 +15,7 @@
     ../../programs/media/cava.nix
     ../../programs/media/spicetify.nix
     ../../programs/themes.nix
-    # ../../programs/opencomposite.nix
+    ../../programs/opencomposite.nix
     ../../programs/media/zathura.nix
     ../../programs/media/easyeffects.nix
     ../../wayland/hyprland
diff --git a/hosts/sora/services/attic.nix b/hosts/sora/services/attic.nix
index 0e68e80..795e78c 100644
--- a/hosts/sora/services/attic.nix
+++ b/hosts/sora/services/attic.nix
@@ -37,7 +37,7 @@
         type = "s3";
         region = "us-east-1";
         bucket = "kyasshu";
-        endpoint = "https://s3.flake.sh/";
+        endpoint = "https://s3.wasabisys.com";
       };
     };
   };
diff --git a/hosts/sora/services/restic.nix b/hosts/sora/services/restic.nix
index 127398b..dcebe19 100644
--- a/hosts/sora/services/restic.nix
+++ b/hosts/sora/services/restic.nix
@@ -21,7 +21,7 @@
           "--keep-weekly=6"
           "--keep-monthly=5"
         ];
-        repository = "s3:https://s3.flake.sh/restic-sora";
+        repository = "s3:https://s3.wasabisys.com/sora-restic";
         initialize = true;
         passwordFile = config.sops.secrets.restic-sora.path;
         environmentFile = config.sops.secrets.sora-s3.path;
diff --git a/hosts/sora/services/traefik.nix b/hosts/sora/services/traefik.nix
index 2071b96..1369057 100644
--- a/hosts/sora/services/traefik.nix
+++ b/hosts/sora/services/traefik.nix
@@ -164,14 +164,6 @@
             tls.domains = [{main = "*.${pqdn}";}];
             tls.certresolver = "production";
           };
-          minio = {
-            rule = "Host(`s3.${pqdn}`)";
-            entrypoints = ["websecure"];
-            service = "minio";
-            tls.domains = [{main = "*.${pqdn}";}];
-            tls.certresolver = "production";
-            middlewares = "cors-allow-all";
-          };
           woodpecker = {
             rule = "Host(`ci.${pqdn}`)";
             entrypoints = ["websecure"];
@@ -209,9 +201,6 @@
           justlog.loadBalancer.servers = [{url = "http://${sakuraIp}8025";}];
           wastebin.loadBalancer.servers = [{url = "http://${sakuraIp}8088";}];
 
-          # kaze
-          minio.loadBalancer.servers = [{url = "http://100.69.79.81:9005";}];
-
           # tsuru
           woodpecker.loadBalancer.servers = [{url = "http://100.82.146.40:8200";}];
         };