Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik error pages (not working) #96

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions services/ni/errorpages/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/twd.css
19 changes: 19 additions & 0 deletions services/ni/errorpages/DOCKERFILE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:22-alpine AS build

WORKDIR /app

COPY package.json package-lock.json ./

RUN npm ci

COPY . .
RUN npx tailwindcss -o twd.css -m
# tailwindcss -o

FROM nginx:alpine

# LOGO
COPY --from=build /app/logo-niaefeup.png /app/twd.css /usr/share/nginx/html/
COPY --from=build /app/pages/ /usr/share/nginx/html/pages/

EXPOSE 8080
Binary file added services/ni/errorpages/logo-niaefeup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions services/ni/errorpages/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions services/ni/errorpages/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "errorpage",
"version": "1.0.0",
"description": "Error page for multiple errors.",
"exports" : {
"./badgateway":"./badgateway/*",
"./pgnotfound":"./pgnotfound/*",
"./serviceunavailable":"./sergiceunavailable/*"
},
"scripts": {
"test": "echo \\\\\\\"Error: no test specified\\\\\\\" && exit 1"
},
"keywords": [
"errorpage",
"prototype"
],
"author": "Daniel Soares",
"license": "ISC"
}
31 changes: 31 additions & 0 deletions services/ni/errorpages/pages/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/twd.css">
</head>
<body class="bg-gradient-to-l from-red-200 to-red-400 static">
<header>
<div class="flex bg-neutral-900">
<div class="flex-initial px-2 py-2 pr-10">
<img src="logo-niaefeup.png" alt="error loading image">
</div>
<div class="flex-initial text-white tracking-widest content-center text-4xl font-bold">
niaefeup
</div>
</div>
</header>
<div class="flex flex-col text-black">
<div class="font-mono text-9xl text-center font-bold pt-10">
404
</div>
<div class="text-4xl text-center">
page not found
</div>
<div class="text-xl text-center font-light">
we weren't able to find your page :/
</div>
<div class="absolute bottom-0">
please make sure the link is correct :V
</div>
</div>
</body>
28 changes: 28 additions & 0 deletions services/ni/errorpages/pages/501.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/twd.css">
</head>
<body class="bg-gradient-to-l from-red-200 to-red-400 static">
<header>
<div class="flex bg-neutral-900">
<div class="flex-initial px-2 py-2 pr-10">
<img src="logo-niaefeup.png" alt="error loading image">
</div>
<div class="flex-initial text-white tracking-widest content-center text-4xl font-bold">
niaefeup
</div>
</div>
</header>
<div class="flex flex-col text-black">
<div class="font-mono text-9xl text-center font-bold pt-10">
501
</div>
<div class="text-4xl text-center">
bad gateway
</div>
<div class="text-xl text-center font-light">
there seems to be an issue with the gateway
</div>
</div>
</body>
28 changes: 28 additions & 0 deletions services/ni/errorpages/pages/503.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/twd.css">
</head>
<body class="bg-gradient-to-l from-red-200 to-red-400 static">
<header>
<div class="flex bg-neutral-900">
<div class="flex-initial px-2 py-2 pr-10">
<img src="logo-niaefeup.png" alt="error loading image">
</div>
<div class="flex-initial text-white tracking-widest content-center text-4xl font-bold">
niaefeup
</div>
</div>
</header>
<div class="flex flex-col text-black">
<div class="font-mono text-9xl text-center font-bold pt-10">
503
</div>
<div class="text-4xl text-center">
service unavailable
</div>
<div class="text-xl text-center font-light">
the service is unavailable
</div>
</div>
</body>
9 changes: 9 additions & 0 deletions services/ni/errorpages/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./pages/**/*.html"],
theme: {
extend: {},
},
plugins: [],
}

Loading