socrates: gateway for cluster restapi

This commit is contained in:
2022-12-17 22:44:49 -05:00
parent aa73269bee
commit b527d5c790
2 changed files with 29 additions and 4 deletions

View File

@ -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"
];
};