diff --git a/infrastructure/cloudformation/dt/load_balancing.yaml b/infrastructure/cloudformation/dt/load_balancing.yaml index 471b2f8..6d4c666 100644 --- a/infrastructure/cloudformation/dt/load_balancing.yaml +++ b/infrastructure/cloudformation/dt/load_balancing.yaml @@ -37,6 +37,8 @@ Resources: NlbTargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: + HealthCheckPort: 80 + HealthCheckProtocol: HTTP Port: 7777 Protocol: TCP_UDP TargetGroupAttributes: diff --git a/server/Dockerfile b/server/Dockerfile index a27ebde..ea72233 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -14,10 +14,7 @@ RUN dnf install nginx -y COPY nginx.conf /etc/nginx/conf.d/nginx.conf -RUN rm /etc/nginx/conf.d/default.conf - RUN systemctl enable nginx.service - EXPOSE 80/tcp EXPOSE 7777/udp \ No newline at end of file