Home

infra @9eac237b3403689f939e0820ba810cf376638f65 - 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
23
24
25
{ config, ... }:
let
  port = 2884;
in
{
  age.secrets.pocket-id.file = ../secrets/pocket-id.age;
  services = {
    pocket-id = {
      enable = true;
      settings = {
        APP_URL = "https://id.jolheiser.com";
        PORT = port;
        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:${builtins.toString port}
    '';
  };
}