fix nginx bad root

This commit is contained in:
do butterflies cry? 2026-01-31 10:26:17 +10:00
parent e14ebf98ca
commit 47bc060da7
2 changed files with 12 additions and 6 deletions

8
flake.lock generated
View file

@ -40,11 +40,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1769815774, "lastModified": 1769819040,
"narHash": "sha256-77XLfci6EK+zenuJkHuyt8gh0MI2mlJYEPVRPu0Ufcc=", "narHash": "sha256-sFtlxsSXGH3BFkM7REuwntmKQ9f1SeDQIqEK8jTdz34=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "c4049313d442538a60edca4aba5e71b963d2bc40", "rev": "e001182489cea3e4cb2a461eb83a7c163f38b7e7",
"revCount": 55, "revCount": 56,
"type": "git", "type": "git",
"url": "https://forge.imbored.dev/emileclarkb/dobutterfliescry.net" "url": "https://forge.imbored.dev/emileclarkb/dobutterfliescry.net"
}, },

View file

@ -1,9 +1,14 @@
{pkgs, ...}: { {
inputs,
pkgs,
...
}: {
nixpkgs.overlays = [ nixpkgs.overlays = [
(self: super: { (self: super: {
# in wake of CVE-2022-3602/CVE-2022-3786 # in wake of CVE-2022-3602/CVE-2022-3786
nginxStable = super.nginxStable.override {openssl = pkgs.libressl;}; nginxStable = super.nginxStable.override {openssl = pkgs.libressl;};
}) })
inputs.dobutterfliescry-net.overlays.default
]; ];
# simple nginx instance to host static construction page # simple nginx instance to host static construction page
@ -82,7 +87,8 @@
{ {
default = true; default = true;
addSSL = true; # not strictly enforced <3 addSSL = true; # not strictly enforced <3
root = "/var/www/cry"; # root = "/var/www/cry";
root = "${pkgs.dobutterfliescry-net}/www";
# extraConfig = '' # extraConfig = ''
# error_page 404 /custom_404.html; # error_page 404 /custom_404.html;
# ''; # '';