diff --git a/infrastructure/cloudformation/dt/task.yaml b/infrastructure/cloudformation/dt/task.yaml index 0de2430..498f09b 100644 --- a/infrastructure/cloudformation/dt/task.yaml +++ b/infrastructure/cloudformation/dt/task.yaml @@ -36,6 +36,9 @@ Resources: - HostPort: 0 ContainerPort: 7777 Protocol: udp + - HostPort: 0 + ContainerPort: 80 + Protocol: tcp LogConfiguration: LogDriver: awslogs Options: diff --git a/server/Dockerfile b/server/Dockerfile index 6822f5b..ea72233 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -9,4 +9,12 @@ RUN cd /dt; /dt/build.sh CMD ["/dt/builds/server.out"] +# Setup status endpoint +RUN dnf install nginx -y + +COPY nginx.conf /etc/nginx/conf.d/nginx.conf + +RUN systemctl enable nginx.service + +EXPOSE 80/tcp EXPOSE 7777/udp \ No newline at end of file