feat: add error pages to website on bekkalokk #115

Open
adriangl wants to merge 1 commits from errorpages into main
Owner

ref #250 hope this should work?

ref #250 hope this should work?
oysteikt was assigned by adriangl 2025-10-02 22:10:01 +02:00
Owner

lolmao kan du fikse commit author feltet

lolmao kan du fikse commit author feltet
Owner

This probably works as a first draft, but I was thinking of theming not just the website, but all of our virtual hosts at once. Should've been more specific I guess. When merged, please leave Drift/issues#250 open :)

This probably works as a first draft, but I was thinking of theming not just the website, but all of our virtual hosts at once. Should've been more specific I guess. When merged, please leave https://git.pvv.ntnu.no/Drift/issues/issues/250 open :)
karolds added 267 commits 2026-02-17 08:42:27 +01:00
om `values`
New backup server just dropped!
This server is awfully slow, and the mdraid setup is awfully slow, and I doubt that this will be a good experience, but we now have a backup server again?

- Tried Disko and nixos-anywhere
- Tried using mdraid
- Found that md is ancient and bad
- Found that disko is 100% extra steps, and a lot more complicated and noisy than just formatting your disks yourself
- Found that systemd-boot doesn't support mdraid
- Found that we probably don't need to mirror the boot partition :)
- Found that old hardware is slow
- Found that old hardware can have poor support for iPXE with UEFI, and might do weird BIOS stuff on you when you least expect it
- Reaffirmed that zfs is love

Current disk layout:
- mdraid for boot/root disk
    - 4TB WD Red with 500MiB ESP with systemd-boot, Remaining mdraid - Old?
    - 4TB WD Red with 500MiB Unused partition, Remaining mdraid - Old?
- zfs pool "tank" for the actual backup data
    - 8TB Toshiba MG08 - New
    - 8TB Exos 7E10 - New

TODO:

- Document the death of Toriel on the wiki
- Document Bakke on the wiki
  - ... describing the poco loco disk layout
- Start backing stuff up
  - Restic? Borg? Rsync?
  - Make backup retention policy and zfs snapshot system
  - Document backup procedures

Reviewed-on: #87
Co-authored-by: Felix Albrigtsen <felix@albrigtsen.it>
Co-committed-by: Felix Albrigtsen <felix@albrigtsen.it>
Reviewed-on: #119
Reviewed-by: Felix Albrigtsen <felixalb@pvv.ntnu.no>
Co-authored-by: Vegard Bieker Matthey <VegardMatthey@protonmail.com>
Co-committed-by: Vegard Bieker Matthey <VegardMatthey@protonmail.com>
sshguard doesn't actually work as it currently stands, also the builtin
PerSourcePenalty functionality in SSH is more aggressive than sshguard
is able to catch anyway. It might've been reasonable if we were using it
for anything other than SSH, but it doesn't seem like we are.
Co-authored-by: System administrator <root@skrot.pvv.ntnu.no>
Reviewed-on: #124
Co-authored-by: Vegard Bieker Matthey <VegardMatthey@protonmail.com>
Co-committed-by: Vegard Bieker Matthey <VegardMatthey@protonmail.com>
update README to reflect added host
Some checks failed
Eval nix flake / evals (push) Failing after 5m21s
Eval nix flake / evals (pull_request) Failing after 3h10m47s
05cc46d3a1
Owner

It looks like you accidentally mass-pinged a bunch of people, which are now subscribed
and getting notifications for everything in this pull request. Unfortunately, they
cannot be automatically unsubscribed from the issue (removing review request does not
unsubscribe), therefore development cannot continue in this pull request anymore.

Please open a new pull request with your changes, link back to this one and ping the
people actually involved in here over there.

In order to avoid this in the future, there are instructions for how to properly
rebase between branches in our contribution guidelines.
Setting your pull request to draft prior to rebasing is strongly recommended.
In draft status, you can preview the list of people that are about to be requested
for review, which allows you to sidestep this issue.
This is not a bulletproof method though, as OfBorg still does review requests even on draft PRs.

It looks like you accidentally mass-pinged a bunch of people, which are now subscribed and getting notifications for everything in this pull request. Unfortunately, they cannot be automatically unsubscribed from the issue (removing review request does not unsubscribe), therefore development cannot continue in this pull request anymore. Please open a new pull request with your changes, link back to this one and ping the people actually involved in here over there. In order to avoid this in the future, there are instructions for how to properly rebase between branches in our [contribution guidelines](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging). Setting your pull request to draft prior to rebasing is strongly recommended. In draft status, you can preview the list of people that are about to be requested for review, which allows you to sidestep this issue. This is not a bulletproof method though, as OfBorg still does review requests even on draft PRs.
adriangl force-pushed errorpages from 05cc46d3a1 to 914458d4b0 2026-02-17 10:10:49 +01:00 Compare
adriangl force-pushed errorpages from 914458d4b0 to 1973989be9 2026-02-17 11:35:58 +01:00 Compare
felixalb requested changes 2026-02-17 13:54:21 +01:00
felixalb left a comment
Owner

Feel free to ignore review if this is still WIP, but plz fix before merge

Feel free to ignore review if this is still WIP, but plz fix before merge
@@ -4,0 +3,4 @@
services.nginx = {
enable = true;
appendHttpConfig = ''
error_page 500 502 503 504 /500.html;
Owner

Grouping 502, 503 and 504 together isn't awful imo, but presenting them as 500 can be very misleading. Could we have different pages for the different status codes, or remove the "Intern Serverfeil"-title and "500: Intern serverfeil"-headings?

Grouping 502, 503 and 504 together isn't awful imo, but presenting them as 500 can be very misleading. Could we have different pages for the different status codes, or remove the "Intern Serverfeil"-title and "500: Intern serverfeil"-headings?
Some checks failed
Eval nix flake / evals (pull_request) Failing after 33s
Eval nix flake / evals (push) Failing after 44s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin errorpages:errorpages
git checkout errorpages
Sign in to join this conversation.