cloudflared.nix 658 B

12345678910111213141516171819202122
  1. { config, ... }:
  2. let
  3. inherit (config.containers) gogs grasp;
  4. immich = config.services.immich;
  5. in
  6. {
  7. services.cloudflared = {
  8. enable = true;
  9. certificateFile = config.age.secrets."odin/services/cloudflared".path;
  10. tunnels."71c89a7f-2467-444c-9fda-4864860dc8c4" = {
  11. default = "http_status:404";
  12. credentialsFile = config.age.secrets."odin/services/cloudflared-tunnel".path;
  13. ingress = {
  14. "photos.t5.st".service = "http://${immich.host}:${toString immich.port}";
  15. "git.t5.st".service = "http://${gogs.localAddress}:3000";
  16. "grasp.t5.st".service = "http://${grasp.localAddress}:7334";
  17. };
  18. };
  19. };
  20. }