update + try_files bugfix

This commit is contained in:
Ivan Kirilov Dimitrov 2024-07-24 21:57:23 +02:00
parent ef7abceb8e
commit b091141927
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 9 additions and 3 deletions

View File

@ -1250,11 +1250,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1721846293, "lastModified": 1721850090,
"narHash": "sha256-j5odUYOaNs+C+uPco6hN30xEW6Sy36KcXd6rDaYMgB0=", "narHash": "sha256-X6lFgEezO2bb/hUQoDIJl+IiQpmWQ1Mz3SOV7AG+anY=",
"owner": "ivandimitrov8080", "owner": "ivandimitrov8080",
"repo": "idimitrov.dev", "repo": "idimitrov.dev",
"rev": "dd2e26284d8d09322791c8277a7711a3471cba30", "rev": "acd20bdeab7c601dc9bb73bbc706e80b9061b029",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -29,6 +29,9 @@ in
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
root = "${pkgs.webshite}"; root = "${pkgs.webshite}";
extraConfig = ''
try_files $uri $uri/ $uri.html =404;
'';
}; };
extraConfig = webshiteConfig; extraConfig = webshiteConfig;
}; };
@ -37,6 +40,9 @@ in
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
root = "${pkgs.webshite}"; root = "${pkgs.webshite}";
extraConfig = ''
try_files $uri $uri/ $uri.html =404;
'';
}; };
extraConfig = webshiteConfig; extraConfig = webshiteConfig;
}; };