✨ socrates: gateway for cluster restapi
This commit is contained in:
parent
aa73269bee
commit
b527d5c790
6
flake.lock
generated
6
flake.lock
generated
@ -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": {
|
||||
|
@ -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"
|
||||
];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user