Home

infra @753a787c2b0026e34e4c25fb6b5d93e1368ee226 - refs - log -
-
https://git.jolheiser.com/infra.git
dragonwell flake
infra / dragonwell / pocket-id.nix
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, ... }:
{
  age.secrets.pocket-id.file = ../secrets/pocket-id.age;
  services = {
    pocket-id = {
      enable = true;
      settings = {
        APP_URL = "https://id.jolheiser.com";
        PORT = 2884;
        APP_NAME = "jolheiser ID";
        EMAILS_VERIFIED = true;
        UI_CONFIG_DISABLED = true;
        HOST = "localhost";
        ANALYTICS_DISABLED = true;
      };
      environmentFile = config.age.secrets.pocket-id.path;
    };
    caddy.virtualHosts."id.jolheiser.com".extraConfig = ''
      reverse_proxy localhost:2884
    '';
  };
}