1
0

cloudflared.nix 580 B

123456789101112131415161718192021
  1. { config, ... }:
  2. let
  3. immich = config.services.immich;
  4. gogs = config.containers.gogs;
  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. };
  17. };
  18. };
  19. }