Add a nicer 404 page #10

Open
opened 2021-03-21 19:06:18 +00:00 by 3wordchant · 3 comments
Owner

Currently it's a not-very-handsome default web server page:

image

At the very least, it'd be nice if it linked back to the index page.

Currently it's a not-very-handsome default web server page: ![image](/attachments/9861320b-8f87-439a-b958-6c152bf2fdf8) At the very least, it'd be nice if it linked back to the index page.
Owner

Ah, on my local I see:

image

This has to do with the fact we're doing this e784833b71/Dockerfile (L13).

We should most likely add an Nginx to proxy it in https://git.autonomic.zone/coop-cloud/docs.coopcloud.tech/src/branch/main/compose.yml but I am too lazy now.

Ah, on my local I see: ![image](/attachments/5d45ae70-981d-4b78-a99a-880486d60277) This has to do with the fact we're doing this https://git.autonomic.zone/coop-cloud/docs.coopcloud.tech/src/commit/e784833b712d5cb0e62ce818c43cc52c32ad9e5b/Dockerfile#L13. We should most likely add an Nginx to proxy it in https://git.autonomic.zone/coop-cloud/docs.coopcloud.tech/src/branch/main/compose.yml but I am too lazy now.
Owner

@knoflook once you have a web proxy wired up (you can copy/pasta stuff the approach from d6f1de31bf/compose.yml (L5-L25) I guess) you can tell it to point to the mkdocs generated 404 pages that are built-in, see https://www.mkdocs.org/user-guide/deploying-your-docs/#404-pages for more.

@knoflook once you have a web proxy wired up (you can copy/pasta stuff the approach from https://git.autonomic.zone/autonomic-cooperative/well-known-uris/src/commit/d6f1de31bf867c2eb561c5422fb1502f9a224e2e/compose.yml#L5-L25 I guess) you can tell it to point to the `mkdocs` generated 404 pages that are built-in, see https://www.mkdocs.org/user-guide/deploying-your-docs/#404-pages for more.
Owner

@knoflook and here is another example of a stack using a proxy 04408f007a/compose.yml (L3-L34) (the trick being that the Nginx proxy is the entrypoint for traefik (uses the labels and the proxy network) and then passes requests down the the other apps, in this case, mkdocs).

@knoflook and here is another example of a stack using a proxy https://git.autonomic.zone/coop-cloud/peertube/src/commit/04408f007a1d7bef4505001475c0c34637854132/compose.yml#L3-L34 (the trick being that the Nginx proxy is the entrypoint for traefik (uses the labels and the `proxy` network) and then passes requests down the the other apps, in this case, `mkdocs`).
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/docs.coopcloud.tech#10
No description provided.