Skip to content

Commit

Permalink
Frontend domain for credit card product passed to frontend service
Browse files Browse the repository at this point in the history
  • Loading branch information
galeaspablo committed Sep 23, 2024
1 parent e8ac6c3 commit f84df8c
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Galeas\Api\JsonSchema;

use Galeas\Api\Common\ExceptionBase\InternalServerErrorException;

class CouldNotEncodeRoutes extends InternalServerErrorException
{
public static function getErrorIdentifier(): string
{
return 'JsonSchema_CouldNotFindControllerAndMethod';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Galeas\Api\JsonSchema;

use Galeas\Api\Common\ExceptionBase\InternalServerErrorException;

class CouldNotFindControllerAndMethod extends InternalServerErrorException
{
public static function getErrorIdentifier(): string
{
return 'JsonSchema_ExceptionSerializerFailed';
}
}
1 change: 1 addition & 0 deletions application/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ COPY ./src /app/src

ENV DOMAIN_IDENTITY="https://placeholder.com"
ENV DOMAIN_SECURITY="https://placeholder.com"
ENV DOMAIN_CREDIT_CARD_PRODUCT="https://placeholder.com"

EXPOSE 8080
CMD [ "node", "src/main.js" ]
Expand Down
1 change: 1 addition & 0 deletions infrastructure/production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module "production_frontend" {
service_name = "fro"
domain_identity = module.production_identity.public_domain
domain_security = module.production_security.public_domain
domain_credit_card_product = module.production_credit_card_product.public_domain

providers = {
google = google.production
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/templates/frontend-application/cloudrun.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ resource "google_cloud_run_service" "application" {
name = "DOMAIN_SECURITY"
value = var.domain_security
}
env {
name = "DOMAIN_CREDIT_CARD_PRODUCT"
value = var.domain_security
}
}
}
metadata {
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/templates/frontend-application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ variable "domain_identity" {
variable "domain_security" {
type = string
}

variable "domain_credit_card_product" {
type = string
}
1 change: 1 addition & 0 deletions infrastructure/templates/frontend-service/modules.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ module "frontend_application" {
vpc_connector_subnetwork_name = module.networking.vpc_connector_name
domain_identity = var.domain_identity
domain_security = var.domain_security
domain_credit_card_product = var.domain_credit_card_product
}
4 changes: 4 additions & 0 deletions infrastructure/templates/frontend-service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ variable "domain_identity" {

variable "domain_security" {
type = string
}

variable "domain_credit_card_product" {
type = string
}

0 comments on commit f84df8c

Please sign in to comment.