Home

infra @9eac237b3403689f939e0820ba810cf376638f65 - refs - log -
-
https://git.jolheiser.com/infra.git
dragonwell flake
infra / dragonwell / atproto.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
{ config, ... }:
let
  port = 2759;
in
{
  age.secrets.pds.file = ../secrets/pds.age;
  services = {
    bluesky-pds = {
      enable = true;
      pdsadmin.enable = true;
      settings = {
        PDS_PORT = port;
        PDS_HOSTNAME = "pds.jolheiser.com";
      };
      environmentFiles = [
        config.age.secrets.pds.path
      ];
    };
    caddy.virtualHosts."pds.jolheiser.com".extraConfig = ''
      reverse_proxy localhost:${builtins.toString port}
    '';
  };
}