Skip to content

Commit c19a762

Browse files
taberj-gitclaude
andcommitted
Remove /api/ proxy block from nginx config for Cloud Run compatibility
The proxy_pass to unity-auth-api:8081 causes nginx to fail on startup in Cloud Run since that hostname doesn't exist. This block was added after the last successful deploy and breaks the container startup. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Jim Taber <taberj@objectcomputing.com>
1 parent c2fd6c3 commit c19a762

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

DockerfileFrontend-prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the frontend and serve with nginx
2-
FROM node:18 AS builder
2+
FROM node:20 AS builder
33

44
COPY frontend frontend
55
WORKDIR frontend

nginx-default.conf

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@ server {
1919
root /usr/share/nginx/html;
2020
}
2121

22-
# TODO: This tries to route the requests from localhost to the API container
23-
# with hostname unity-auth-api but currently receive 504 Gateway Timeout
24-
location /api/ {
25-
proxy_pass http://unity-auth-api:8081;
26-
proxy_http_version 1.1;
27-
28-
proxy_connect_timeout 60s;
29-
proxy_send_timeout 60s;
30-
proxy_read_timeout 60s;
31-
send_timeout 60s;
32-
33-
# Forward headers
34-
proxy_set_header Host $host;
35-
proxy_set_header X-Real-IP $remote_addr;
36-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
37-
proxy_set_header X-Forwarded-Proto $scheme;
38-
}
39-
4022
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
4123
#
4224
#location ~ \.php$ {

0 commit comments

Comments
 (0)