diff options
author | lassulus <lassulus@lassul.us> | 2022-08-23 11:28:45 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-08-23 11:28:45 +0200 |
commit | d1fa957ed5bf60767c83c96135f9142f6c96ea50 (patch) | |
tree | dbe3238f0c1407d5a5af0680e4a67237138ed9e8 /tv/2configs/nginx/default.nix | |
parent | 90cd7e6050b1c73cfb8deb3aaf2686312dc1dda7 (diff) | |
parent | afa416983a9fdf223a548b6c469c02dfae84023b (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/2configs/nginx/default.nix')
-rw-r--r-- | tv/2configs/nginx/default.nix | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tv/2configs/nginx/default.nix b/tv/2configs/nginx/default.nix index b0acb9435..efea3a844 100644 --- a/tv/2configs/nginx/default.nix +++ b/tv/2configs/nginx/default.nix @@ -4,22 +4,19 @@ with import <stockholm/lib>; { services.nginx = { + enableReload = true; + recommendedGzipSettings = true; recommendedOptimisation = true; recommendedTlsSettings = true; - virtualHosts._http = { + virtualHosts.${toJSON ""} = { default = true; extraConfig = '' - return 404; - ''; - }; - - virtualHosts.default = { - locations."= /etc/os-release".extraConfig = '' - default_type text/plain; - alias /etc/os-release; + error_page 400 =444 /; + return 444; ''; + rejectSSL = true; }; }; tv.iptables = { |