Private networking question
Can I prevent external access, but access internally with other services:
for example, can I access via https://meilisearch.railway.internal from other services in the project?
25 Replies
Project ID:
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
Solution
yea, that's what it's for
perfecto!!
absolutely, that's entirely what it's for
bro beat me
beat you to it
very nice feature
thankyou
curses
as with all things, there are some caveats, like I don't know if meilisearch listens on ipv6 by default, but it would need to on account of the private networking being ipv6 only
as long as the host works from https://meilisearch.railway.internal that will be fine
just deploying now... that gives me $30 more to spend on Railway 😄
sounds good!
I'm tempted to move to Railway redis now also... but I remember last time I was using it, there were frequent disconnects
also you can't connect to redis through the internal network
oh, the Meilisearch service won't be able to see the Redis?
it can, you just need to use the public redis address
Right that* makes sense
that*
bleh, must of messed something up:
2023-07-29T15:52:19.880Z pid=1 tid=3ghp WARN: MeiliSearch::CommunicationError: An error occurred while trying to connect to the MeiliSearch instance: Failed to open TCP connection to meilisearch.railway.internal:443 (Connection refused - connect(2) for "meilisearch.railway.internal" port 443)
can i connect on port 443 ?
well what port does meilisearch run on?
I'm not sure, I'm going to try just plain meilisearch.railway.internal in the Host
this is an internal network after all, you do need to use the correct port in the url
yeah, maybe https isn't required if it's internal
https won't work, this is internal, internally the services run on http
could be 3331
like when you run your dev server for your website locally, you go to http://127.0.0.1:3000 (for example) to access it, it's an internal address running on a specific port
treating the internal domains like a public domain has tripped quite a few people up, it really is an internal network just with nice domain names
yep! weirdly though parts of the app I don't run at all locally
Meilisearch is one of them
makes sense