about summary refs log tree commit diff
path: root/ops/modules/www/nixery.dev.nix
blob: 05dc88c66a071d1fc7d33b32fc161b5276d52df5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, ... }:

{
  imports = [
    ./base.nix
  ];

  config = {
    services.nginx.virtualHosts."nixery.dev" = {
      serverName = "nixery.dev";
      enableACME = true;
      forceSSL = true;

      extraConfig = ''
        location / {
          proxy_pass http://localhost:${toString config.services.depot.nixery.port};
        }
      '';
    };
  };
}