From 918be8a94a368c935b9efbb83751aef2e0a31fe6 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Fri, 9 Dec 2022 18:37:04 -0300 Subject: [PATCH] hosts/electra: fix yrmos 404 --- flake.lock | 6 +++--- hosts/electra/services/yrmos.nix | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 8b906bf2..29ee0154 100644 --- a/flake.lock +++ b/flake.lock @@ -610,11 +610,11 @@ "nixpkgs": "nixpkgs_8" }, "locked": { - "lastModified": 1670621607, - "narHash": "sha256-mj+MpJ4GGDEd668g0d8QqLGABD9k3PEoIgJFPS15D6E=", + "lastModified": 1670622945, + "narHash": "sha256-onH9ZzOZF6msTvXT59E64wtc8wjOpgci97imW3PqkDU=", "owner": "misterio77", "repo": "yrmos", - "rev": "57b431576a283e267a0c626e3741e7e592aa09f1", + "rev": "e7750a888bfac5ee60ae1625a15a55551272d65a", "type": "github" }, "original": { diff --git a/hosts/electra/services/yrmos.nix b/hosts/electra/services/yrmos.nix index ecf8a47c..47633bfc 100644 --- a/hosts/electra/services/yrmos.nix +++ b/hosts/electra/services/yrmos.nix @@ -16,15 +16,13 @@ in locations = { "=/" = { return = "302 https://yrmos.m7.rs/rides"; - extraConfig = '' - error_page 404 /404.html; - ''; }; "/" = { root = "${yrmos}/public"; extraConfig = '' add_header Last-Modified "${yrmosLastModified}"; add_header Cache-Control max-age="${toString (60 * 60 /* One hour */)}"; + error_page 404 /404.html; ''; }; };