summaryrefslogtreecommitdiff
path: root/chaski/services/walint.nix
blob: 0b17e22476e9a01e1ee883d1e1fa17bd1f9b222a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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-server
    '';
  };

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

}