From fc0dc344abffd948e3e6fb551bc832a5aabf3152 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 14 Oct 2024 09:14:00 +0000 Subject: [PATCH] add new error.html file --- nginx/Dockerfile | 3 ++- nginx/setup/error.html | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 nginx/setup/error.html diff --git a/nginx/Dockerfile b/nginx/Dockerfile index eda7994ee..e69cfc691 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -8,6 +8,7 @@ RUN apk update --no-cache && \ COPY setup/nginx.conf ${NGINX_DIR}/nginx.conf COPY setup/index.html /usr/share/nginx/html/index.html +COPY setup/error.html /usr/share/nginx/html/error.html COPY setup/default.conf ${NGINX_DIR}/conf.d/ RUN mkdir -p ${NGINX_DIR}/certs @@ -20,4 +21,4 @@ ENTRYPOINT \ -keyout ${NGINX_DIR}/certs/ckan-local.key \ -out ${NGINX_DIR}/certs/ckan-local.crt \ -days 365 && \ - nginx -g 'daemon off;' \ No newline at end of file + nginx -g 'daemon off;' diff --git a/nginx/setup/error.html b/nginx/setup/error.html new file mode 100644 index 000000000..29fd8c2d9 --- /dev/null +++ b/nginx/setup/error.html @@ -0,0 +1,12 @@ + + + + + + Error + + +

Oops! Something went wrong.

+

We're sorry, but the page you requested could not be found.

+ +