From a0913cb3cd93b656aabc77d230ed173085353048 Mon Sep 17 00:00:00 2001 From: Aleksei Lunin <alexey.lunin@vereign.com> Date: Wed, 1 Nov 2023 02:53:53 +0300 Subject: [PATCH] fix spa issue --- apps/dashboard/Dockerfile | 2 +- apps/dashboard/nginx.conf | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 apps/dashboard/nginx.conf diff --git a/apps/dashboard/Dockerfile b/apps/dashboard/Dockerfile index c55d39b2..9290d479 100644 --- a/apps/dashboard/Dockerfile +++ b/apps/dashboard/Dockerfile @@ -23,7 +23,7 @@ RUN rm -rf /usr/share/nginx/html/* COPY --from=builder /app/dist/apps/dashboard /usr/share/nginx/html EXPOSE 80 - +COPY apps/dashboard/nginx.conf /etc/nginx/conf.d/default.conf # Copy custom entrypoint script COPY apps/dashboard/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/apps/dashboard/nginx.conf b/apps/dashboard/nginx.conf new file mode 100644 index 00000000..9e291d4d --- /dev/null +++ b/apps/dashboard/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} -- GitLab