{
  email admin@bytelyst.com
}

api.bytelyst.com {
  encode gzip

  @platform_root path /platform
  redir @platform_root /platform/ 308
  handle_path /platform/* {
    reverse_proxy platform-service:4003
  }

  @extraction_root path /extraction
  redir @extraction_root /extraction/ 308
  handle_path /extraction/* {
    reverse_proxy extraction-service:4005
  }

  @mcp_root path /mcp
  redir @mcp_root /mcp/ 308
  handle_path /mcp/* {
    reverse_proxy mcp-server:4007
  }

  @peakpulse_root path /peakpulse
  redir @peakpulse_root /peakpulse/ 308
  handle_path /peakpulse/* {
    reverse_proxy peakpulse-backend:4010
  }

  @chronomind_root path /chronomind
  redir @chronomind_root /chronomind/ 308
  handle_path /chronomind/* {
    reverse_proxy chronomind-backend:4011
  }

  @jarvisjr_root path /jarvisjr
  redir @jarvisjr_root /jarvisjr/ 308
  handle_path /jarvisjr/* {
    reverse_proxy jarvisjr-backend:4012
  }

  @nomgap_root path /nomgap
  redir @nomgap_root /nomgap/ 308
  handle_path /nomgap/* {
    reverse_proxy nomgap-backend:4013
  }

  @mindlyst_root path /mindlyst
  redir @mindlyst_root /mindlyst/ 308
  handle_path /mindlyst/* {
    reverse_proxy mindlyst-backend:4014
  }

  @lysnrai_root path /lysnrai
  redir @lysnrai_root /lysnrai/ 308
  handle_path /lysnrai/* {
    reverse_proxy lysnrai-backend:4015
  }

  @notelett_root path /notelett
  redir @notelett_root /notelett/ 308
  handle_path /notelett/* {
    reverse_proxy notelett-backend:4016
  }

  @flowmonk_root path /flowmonk
  redir @flowmonk_root /flowmonk/ 308
  handle_path /flowmonk/* {
    reverse_proxy flowmonk-backend:4017
  }

  @actiontrail_root path /actiontrail
  redir @actiontrail_root /actiontrail/ 308
  handle_path /actiontrail/* {
    reverse_proxy actiontrail-backend:4018
  }

  @localmemgpt_root path /localmemgpt
  redir @localmemgpt_root /localmemgpt/ 308
  handle_path /localmemgpt/* {
    reverse_proxy localmemgpt-backend:4019
  }

  respond 404
}

gitea.bytelyst.com {
  encode gzip
  reverse_proxy gitea-npm-registry:3000
}

admin.bytelyst.com {
  encode gzip
  reverse_proxy admin-web:3001
}

tracker.bytelyst.com {
  encode gzip
  reverse_proxy tracker-web:3003
}

llmlab.bytelyst.com {
  encode gzip
  reverse_proxy llmlab-dashboard:3075
}

ollama.bytelyst.com {
  encode gzip
  reverse_proxy 172.17.0.1:11434
}
