#community-help

Misunderstanding Typesense and H2O Proxies

TLDR Daniel was confused about using H2O as a reverse proxy with Typesense. Jason clarified that H2O is not mandatory and that Typesense can be directly exposed to public traffic. Daniel decided to continue using NGINX.

Powered by Struct AI
+12
15
22mo
Solved
Join the chat
Nov 17, 2021 (22 months ago)
Daniel
Photo of md5-3e862430ae06b87120e3640d3f9f8061
Daniel
01:16 AM
Is a requirement to use H2O as the reverse proxy?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:17 AM
H2O is the http library we're using within Typesense. Out of curiosity, may I know where you read this as a requirement?
01:18
Jason
01:18 AM
In any case, in general, you don't need to run Typesense behind a reverse proxy. H2O which is baked into Typesense is a production-grade http server and can be exposed to public traffic
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:19 AM
Are you referring to this line: Typesense comes built-in with a high performance HTTP server (opens new window)that is used by likes of Fastly (opens new window)in their edge servers at scale. So Typesense can be directly exposed to incoming public-facing internet traffic, without the need to place it behind another web server like Nginx / Apache or your backend API.

I don't see any other direct mentions of H2O
Daniel
Photo of md5-3e862430ae06b87120e3640d3f9f8061
Daniel
01:19 AM
Yeah
01:19
Daniel
01:19 AM
But now I get it
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:20 AM
Was the wording confusing? Can we reword it better in some way?
Daniel
Photo of md5-3e862430ae06b87120e3640d3f9f8061
Daniel
01:20 AM
I mean, I don't have any experience with H2O, do you have any examples exposing Typesense?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:21 AM
You don't have to use H2O, that's a low-level detail inside of Typesense
Daniel
Photo of md5-3e862430ae06b87120e3640d3f9f8061
Daniel
01:21 AM
No, it wasn't. It's really just me not reading very well
01:21
Daniel
01:21 AM
I'm not a native English speaker, so I may have misunderstood the paragraph
+11
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:22 AM
Sometimes, people might want to put Typesense behind nginx - for eg, if you want to have Typesense be served behind a /sub-path
01:22
Jason
01:22 AM
If that's not needed, there's no additional setup needed
Daniel
Photo of md5-3e862430ae06b87120e3640d3f9f8061
Daniel
01:22 AM
I'll stick with NGINX then haha, thanks 😃
+11