fix: absoulute redirect in nginx config

This commit is contained in:
Torsten Dittmann
2024-04-29 22:49:40 +02:00
parent e285084c16
commit cf0858ee40
2 changed files with 6 additions and 4 deletions
+5 -4
View File
@@ -1,5 +1,7 @@
FROM node:20-alpine as build
WORKDIR /app
ADD ./build.js /app/build.js
ADD ./tsconfig.json /app/tsconfig.json
ADD ./svelte.config.js /app/svelte.config.js
@@ -9,8 +11,6 @@ ADD ./package-lock.json /app/package-lock.json
ADD ./src /app/src
ADD ./static /app/static
WORKDIR /app
ARG VITE_CONSOLE_MODE
ARG VITE_APPWRITE_ENDPOINT
ARG VITE_APPWRITE_GROWTH_ENDPOINT
@@ -25,7 +25,8 @@ RUN npm ci
RUN npm run build
FROM nginx:1.25-alpine
EXPOSE 3000
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 3000
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build /usr/share/nginx/html/console
+1
View File
@@ -10,6 +10,7 @@ server {
}
location / {
absolute_redirect off;
return 301 /console;
}
}