From eba00323ac0e960db1efc81ff38598dfcc025a98 Mon Sep 17 00:00:00 2001 From: faulty Date: Sun, 19 Feb 2023 14:51:15 +0100 Subject: [PATCH] custom error pages? --- custom/proxy/Dockerfile | 8 ++++++- custom/proxy/config/error_pages/50x.html | 30 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 custom/proxy/config/error_pages/50x.html diff --git a/custom/proxy/Dockerfile b/custom/proxy/Dockerfile index e4d5cef..4948d6b 100644 --- a/custom/proxy/Dockerfile +++ b/custom/proxy/Dockerfile @@ -1,8 +1,14 @@ FROM nginxproxy/nginx-proxy:latest +# Copy NGINX config COPY config/nginx.conf /etc/nginx/nginx.conf +# Copy docker startup script COPY 90-copy-files.sh /docker-entrypoint.d +# Copy nginx files COPY config/vhost.d /custom/vhost.d -COPY config/conf.d /custom/conf.d \ No newline at end of file +COPY config/conf.d /custom/conf.d + +# copy error pages +COPY error_pages/* /usr/share/nginx/html/ \ No newline at end of file diff --git a/custom/proxy/config/error_pages/50x.html b/custom/proxy/config/error_pages/50x.html new file mode 100644 index 0000000..30ea077 --- /dev/null +++ b/custom/proxy/config/error_pages/50x.html @@ -0,0 +1,30 @@ + + + 50x Error + + + +

50x Error

+

Sorry, something went wrong on the server.


+

This usually means that there is a service booting or such...

+ + \ No newline at end of file