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

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

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

    virtualHosts."noms.ing" = {
      enableACME = true;
      forceSSL = true;
      locations."/".root = ../../pkgs/nomsing;
    };
  };
}