diff --git a/flake.lock b/flake.lock index 84147ef..fd89ede 100644 --- a/flake.lock +++ b/flake.lock @@ -220,11 +220,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1671190014, - "narHash": "sha256-NW385LW4Nj53Hbv3LXr458s4NL2/wcARC8rzK7vSWkw=", + "lastModified": 1671268780, + "narHash": "sha256-9Okbivo10bcXEGCtmAQNfJt1Zpk6B3tjkSQ2CIXmTCg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "fbcb61bd7eb19914cbd88789c3586a63ff46b72b", + "rev": "80c24eeb9ff46aa99617844d0c4168659e35175f", "type": "github" }, "original": { diff --git a/modules/ipfs/gateway.nix b/modules/ipfs/gateway.nix index a6de97f..493e017 100644 --- a/modules/ipfs/gateway.nix +++ b/modules/ipfs/gateway.nix @@ -41,12 +41,37 @@ in }; }; nginx = { + + # IPFS Cluster REST API. + upstreams = { + "cluster_restapi" = { + servers = { + "100.95.167.126:9094" = { }; + "100.87.220.71:9094" = { }; + "100.126.255.109:9094" = { }; + "100.74.59.80:9094" = { }; + }; + }; + }; + virtualHosts."cluster.walkah.cloud" = { + forceSSL = true; + enableACME = true; + locations."/" = { proxyPass = "http://cluster_restapi"; }; + }; + + # IPFS Gateway virtualHosts."walkah.cloud" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://127.0.0.1:8080"; }; + }; + + # Hosted Sites + virtualHosts."walkah.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { proxyPass = "http://127.0.0.1:8080"; }; serverAliases = [ - "walkah.net" "www.walkah.net" ]; };