From a5950037fed19141b65ca556328396f6dd2f8a06 Mon Sep 17 00:00:00 2001 From: Yahya AlSaidi Date: Mon, 19 Feb 2024 09:40:17 +0400 Subject: [PATCH] fix: fixing the nginx since there is some issue with it --- Dockerfile | 3 +++ config.json | 2 +- etc/nginx/default.conf | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 etc/nginx/default.conf diff --git a/Dockerfile b/Dockerfile index e007d20a..cd3d3351 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,9 @@ FROM nginx:1.25.3-alpine ENV KAFKA_CONNECT_CLUSTERS=http://localhost:8083/ +RUN rm -rf /etc/nginx/conf.d/*.conf +COPY ./etc/nginx/default.conf /etc/nginx/conf.d/default.conf + COPY --from=builder /app/dist /usr/share/nginx/html COPY config.json /app/config.json COPY deployment/image/create-dbzui-config.sh /docker-entrypoint.d/ diff --git a/config.json b/config.json index 1206b8e0..c480704b 100644 --- a/config.json +++ b/config.json @@ -1,3 +1,3 @@ { - "KAFKA_CONNECT_CLUSTERS": "http://localhost:8083" + "KAFKA_CONNECT_CLUSTERS": "http://localhost:8083/" } diff --git a/etc/nginx/default.conf b/etc/nginx/default.conf new file mode 100644 index 00000000..f8a8ba6b --- /dev/null +++ b/etc/nginx/default.conf @@ -0,0 +1,10 @@ +server { + listen 80; + + location / { + proxy_buffering off; + root /usr/share/nginx/html; + try_files $uri $uri/ $uri/index.html /index.html; + } +} +