summary refs log tree commit diff
path: root/machines/lapin/default.nix
blob: 2047cbac8ead1a98f3e53df49fd4877b1bf8aaf3 (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
25
26
27
28
29
30
31
32
33
34
35
{ me, pkgs, lib, ... }:

{
  imports = [
    ../../modules/common.nix

    ./hardware.nix
    ./devices.nix

    ../../modules/www.nix
  ];

  services.nginx.virtualHosts = {
    "soc.rnrd.eu" = {
      forceSSL = true;
      enableACME = true;

      locations."/" = {
        proxyWebsockets = true;
        proxyPass = "http://127.0.0.1:1111";
      };
    };

    "matrix.rnrd.eu" = {
      forceSSL = true;
      enableACME = true;

      locations."/_matrix" = {
        proxyPass = "http://127.0.0.1:8008";
      };
    };
  };

  system.stateVersion = "23.05";
}