summaryrefslogtreecommitdiff
path: root/flora/services/picarones.nix
blob: c2e3c7b0be5cb4fdfb7a8dec67057466b1b2da87 (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
{config, pkgs, ...}:
let
  source = builtins.fetchGit {
    url = "https://stuebinm.eu/git/picarones/";
    rev = "0596b9f6c561daa67945adb81570efd30650dffd";
  };
in
{

  imports = [ source.outPath ];

  services.picarones = {
    enable = true;
    frontend = {
      enable = true;
      domain = "picarones.stuebinm.eu";
      proxyBackend = true;
      config = {
        enableACME = true;
        forceSSL = true;
      };
    };
  };

  networking.firewall.allowedTCPPorts = [ 80 443 ];
}