Merge pull request #179 from Nisha1293/ckan-docker-issue/177

add new error.html file
This commit is contained in:
Brett Jones 2024-10-15 20:41:16 +02:00 committed by GitHub
commit e1a902357d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -8,6 +8,7 @@ RUN apk update --no-cache && \
COPY setup/nginx.conf ${NGINX_DIR}/nginx.conf COPY setup/nginx.conf ${NGINX_DIR}/nginx.conf
COPY setup/index.html /usr/share/nginx/html/index.html 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/ COPY setup/default.conf ${NGINX_DIR}/conf.d/
RUN mkdir -p ${NGINX_DIR}/certs RUN mkdir -p ${NGINX_DIR}/certs
@ -20,4 +21,4 @@ ENTRYPOINT \
-keyout ${NGINX_DIR}/certs/ckan-local.key \ -keyout ${NGINX_DIR}/certs/ckan-local.key \
-out ${NGINX_DIR}/certs/ckan-local.crt \ -out ${NGINX_DIR}/certs/ckan-local.crt \
-days 365 && \ -days 365 && \
nginx -g 'daemon off;' nginx -g 'daemon off;'

12
nginx/setup/error.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error</title>
</head>
<body>
<h1>Oops! Something went wrong.</h1>
<p>We're sorry, but the page you requested could not be found.</p>
</body>
</html>