From 8c7626a5c94a422c9b2d375f47c3287acdcc6ea1 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 7 Jun 2025 22:15:44 +0200 Subject: [PATCH] fix --- Containerfile | 2 ++ nginx.conf | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 nginx.conf diff --git a/Containerfile b/Containerfile index 50e780d..0713446 100644 --- a/Containerfile +++ b/Containerfile @@ -26,6 +26,8 @@ RUN /root/.cargo/bin/dx bundle --platform web FROM nginx:alpine +COPY nginx.conf /etc/nginx/conf.d/default.conf + RUN rm -rf /usr/share/nginx/html/* COPY --from=builder /app/target/dx/cdb_client/release/web/public /usr/share/nginx/html diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..349c6b4 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file