hosts/electra: fix yrmos 404

This commit is contained in:
Gabriel Fontes
2022-12-09 18:55:55 -03:00
parent 15b16188c6
commit 918be8a94a
2 changed files with 4 additions and 6 deletions
Generated
+3 -3
View File
@@ -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": {
+1 -3
View File
@@ -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;
'';
};
};