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 | 1e4864d738133dd005ccb841ec002efd37d5c0ae (patch) | |
tree | 9136a383bac714af8fcd09bd64d5c196d4ba510c /tv/2configs/nginx/default.nix | |
parent | bb8be44848a549eeed9613714521855c836523e5 (diff) | |
parent | 63111f6b3f3caebfe885c5b36bf98a37e84b6f60 (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 b0acb94..efea3a8 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 = { |