Skip to content

Commit

Permalink
Merge pull request #179 from Nisha1293/ckan-docker-issue/177
Browse files Browse the repository at this point in the history
add new error.html file
  • Loading branch information
kowh-ai authored Oct 15, 2024
2 parents b33d0b9 + fc0dc34 commit e1a9023
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;'
nginx -g 'daemon off;'
12 changes: 12 additions & 0 deletions nginx/setup/error.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit e1a9023

Please sign in to comment.