Skip to content

Commit

Permalink
Merge pull request #1281 from input-output-hk/add-regional-domains
Browse files Browse the repository at this point in the history
chore: deprecate long domains and add regional domains
  • Loading branch information
gytis-ivaskevicius authored May 16, 2024
2 parents 3b7a6d5 + f0b8dc6 commit 80c0618
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions nix/cardano-services/deployments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ in
backend = {
allowedOrigins = lib.concatStringsSep "," allowedOrigins;
passHandleDBArgs = true;
hostnames = ["${final.namespace}.${baseUrl}"];
hostnames = ["${final.namespace}.${baseUrl}" "${final.namespace}.${final.region}.${baseUrl}"];
dnsId = lib.toLower "${final.region}-${final.namespace}-backend";
ogmiosSrvServiceName = "${final.namespace}-cardano-core.${final.namespace}.svc.cluster.local";

Expand Down Expand Up @@ -398,7 +398,6 @@ in
values = {
stakepool.databaseName = "stakepoolv2";
backend.allowedOrigins = lib.concatStringsSep "," allowedOriginsDev;
backend.hostnames = ["${final.namespace}.${baseUrl}"];

pg-boss-worker.enabled = true;

Expand Down Expand Up @@ -436,7 +435,6 @@ in

values = {
stakepool.databaseName = "stakepoolv2";
backend.hostnames = ["${final.namespace}.${baseUrl}"];
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
cardano-services = {
Expand Down Expand Up @@ -495,7 +493,6 @@ in
];
};
backend.allowedOrigins = lib.concatStringsSep "," allowedOrigins;
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
backend.routes = let
inherit (oci.meta) versions;
in
Expand Down Expand Up @@ -567,7 +564,6 @@ in
];
};
backend.allowedOrigins = lib.concatStringsSep "," allowedOrigins;
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
backend.routes = let
inherit (oci.meta) versions;
in
Expand Down Expand Up @@ -627,7 +623,6 @@ in
};

values = {
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
stakepool.databaseName = "stakepoolv2";
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
Expand Down Expand Up @@ -692,7 +687,6 @@ in

values = {
stakepool.databaseName = "stakepoolv2";
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";
Expand Down Expand Up @@ -795,7 +789,6 @@ in

values = {
stakepool.databaseName = "stakepoolv2";
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";
Expand Down Expand Up @@ -898,7 +891,6 @@ in

values = {
stakepool.databaseName = "stakepoolv2";
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";
Expand Down

0 comments on commit 80c0618

Please sign in to comment.