summaryrefslogtreecommitdiff
path: root/chaski/services/walint.nix
blob: f836babed8224c73e33e35f598e7e2e1aa5790c5 (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
{ config, lib, pkgs, inputs, ... }:

{
  systemd.services.walint = {
    enable = true;
    description = "test instance for walint & divoc";
    wantedBy = [ "multi-user.target" ];
    serviceConfig.Type = "simple";
    path = [ pkgs.git ];
    script = ''
      cd ${(import inputs.walint).walint-server}
      ./bin/walint-mapserver
    '';
  };

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

}