summaryrefslogtreecommitdiff
path: root/flora/services/nginx.nix
blob: bbcacb7fc768f5e97e35b37e09f9e7a8cfd478ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, pkgs, ... }:

{
  networking.firewall.allowedTCPPorts = [ 80 443 ];

  services.nginx = {
    enable = true;
    
    recommendedOptimisation = true;
    recommendedTlsSettings = true;
    recommendedProxySettings = true;

    appendHttpConfig = ''
      add_header Permissions-Policy "interest-cohort=()";
    '';
  };
}