custom error pages?
This commit is contained in:
parent
cb78a92298
commit
eba00323ac
2 changed files with 37 additions and 1 deletions
|
@ -1,8 +1,14 @@
|
||||||
FROM nginxproxy/nginx-proxy:latest
|
FROM nginxproxy/nginx-proxy:latest
|
||||||
|
|
||||||
|
# Copy NGINX config
|
||||||
COPY config/nginx.conf /etc/nginx/nginx.conf
|
COPY config/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
# Copy docker startup script
|
||||||
COPY 90-copy-files.sh /docker-entrypoint.d
|
COPY 90-copy-files.sh /docker-entrypoint.d
|
||||||
|
|
||||||
|
# Copy nginx files
|
||||||
COPY config/vhost.d /custom/vhost.d
|
COPY config/vhost.d /custom/vhost.d
|
||||||
COPY config/conf.d /custom/conf.d
|
COPY config/conf.d /custom/conf.d
|
||||||
|
|
||||||
|
# copy error pages
|
||||||
|
COPY error_pages/* /usr/share/nginx/html/
|
30
custom/proxy/config/error_pages/50x.html
Normal file
30
custom/proxy/config/error_pages/50x.html
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>50x Error</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--background: #1e1e1e;
|
||||||
|
--foreground: #d4d4d4;
|
||||||
|
--accent: #007acc;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--background);
|
||||||
|
color: var(--foreground);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: var(--foreground);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>50x Error</h1>
|
||||||
|
<p>Sorry, something went wrong on the server.</p><br/>
|
||||||
|
<p>This usually means that there is a service booting or such...</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in a new issue