summaryrefslogtreecommitdiff
path: root/hosts/chaski/services/uplcg.nix
blob: 560504666ee32648a366a659b807a651bfc9c318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, inputs, ... }:

{
  imports = [
    "${inputs.uplcg.outPath}/module.nix"
  ];

  services.uplcg = {
    enable = true;
    port = 9080;
    domain = "0.0.0.0";
  };

  services.nginx.enable = true;
  services.nginx.virtualHosts."cards.stuebinm.eu" = {
    locations."/" = {
      proxyPass = "http://localhost:9080";
      proxyWebsockets = true;
    };
    enableACME = true;
    forceSSL = true;
  };
}