summaryrefslogtreecommitdiff
path: root/flora/services/nginx.nix
blob: 7c792ba5aa5bffdbcd2a1c696a76adda1fa7a543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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;
    };
    virtualHosts."meow.noms.ing" = {
      enableACME = true;
      forceSSL = true;
      locations."/".root = ../../pkgs/nomsing;
    };
  };
}