mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-02-20 17:07:51 +01:00
feat: add error pages to nginx on bekkalokk
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
services.nginx.enable = true;
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
appendHttpConfig = ''
|
||||
error_page 500 502 503 504 /500.html;
|
||||
'';
|
||||
};
|
||||
environment.etc."nginx/html/500.html".source = ./500.html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user