Revert "fix(auth): serve unified frontend from nginx"

This reverts commit e212c0cd76.
This commit is contained in:
mac
2026-07-15 13:27:04 +08:00
parent 093a451e0a
commit 666e4ab762
2 changed files with 2 additions and 19 deletions
-15
View File
@@ -1,15 +0,0 @@
FROM node:20-alpine AS builder
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci --no-audit --no-fund
COPY frontend/ ./
RUN npm run build
FROM nginx:1.29-alpine
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
+2 -4
View File
@@ -10,8 +10,6 @@ data:
server_name _; server_name _;
client_max_body_size 10m; client_max_body_size 10m;
root /usr/share/nginx/html;
index index.html;
location = /healthz { location = /healthz {
proxy_pass ${AUTHSERVER_BACKEND_UPSTREAM}; proxy_pass ${AUTHSERVER_BACKEND_UPSTREAM};
@@ -81,7 +79,7 @@ data:
} }
location / { location / {
try_files $uri $uri/ /index.html; return 404;
} }
} }
--- ---
@@ -102,7 +100,7 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: docker.io/library/authserver-nginx:1.2.3 image: nginx:1.29-alpine
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 80