Skip to content

Commit

Permalink
backend_conenctivity_test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed Mar 8, 2024
1 parent c9ed6bd commit 7a667cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/docker/etc/nginx/conf.d/appointments.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server {
location ^~ /api/v1/ {
# Remove our fake /api/v1/ prefix for FastAPI
rewrite ^/api/v1/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:5000;
proxy_pass http://staging-appointment-backend-493670321.us-east-1.elb.amazonaws.com:5000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
Expand Down
1 change: 1 addition & 0 deletions tofu/modules/fullstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ module "ecs_cluster" {
# Backend Resources
resource "aws_ecs_service" "backend_service" {
name = "${local.name_prefix}-backend"
depends_on = [ module.db ]
cluster = module.ecs_cluster.id
load_balancer {
target_group_arn = module.backend_alb.target_groups["${local.name_prefix}-ecs-backend-alb"].arn
Expand Down

0 comments on commit 7a667cd

Please sign in to comment.