diff --git a/Dockerfile b/Dockerfile index 2d0dd23..2e06662 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN npm ci && npm run build FROM nginx:alpine +COPY ./nginx.conf /etc/nginx/nginx.conf COPY --from=builder /home/node/app/dist /var/www/html EXPOSE 8080 diff --git a/nginx.conf b/nginx.conf index f90db51..a5c0430 100644 --- a/nginx.conf +++ b/nginx.conf @@ -77,13 +77,14 @@ http { location @502 { return 502 '{"status":502,"message":"Bad gateway"}\n'; } location /mail { - return 302 mailto:info@adb.sh; + return 302 mailto:info@adb.sh; } location / { index index.html; root /var/www/html; try_files $uri $uri/ /index.html; + absolute_redirect off; } } }