summaryrefslogtreecommitdiff
path: root/modules/desktop/networking/caddy.nix
blob: efba3f6ce8ed63fe346de41959b9d37dbd9a095e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  services.caddy = {
    enable = true;

    virtualHosts = {
      "i2pd.localhost".extraConfig = ''
        reverse_proxy localhost:7070
        tls internal
      '';

      "glance.localhost".extraConfig = ''
        reverse_proxy localhost:8080
        tls internal
      '';
    };
  };
}