https://git.jolheiser.com/infra.git
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 27 28 29 30
{ jolheiser, config, lib, ... }: let enable = true; port = 2759; host = "pds.${jolheiser.domain}"; in lib.mkIf enable { age.secrets.pds.file = ../../secrets/pds.age; services = { bluesky-pds = { enable = true; pdsadmin.enable = true; settings = { PDS_PORT = port; PDS_HOSTNAME = host; }; environmentFiles = [ config.age.secrets.pds.path ]; }; caddy.virtualHosts."${host}".extraConfig = '' reverse_proxy localhost:${builtins.toString port} ''; }; }