R
Railway•12mo ago
macwilko

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?
Solution:
yea, that's what it's for
Jump to solution
25 Replies
Percy
Percy•12mo ago
Project ID: d1c85c02-8ca5-43c3-adc6-4a24cb066e33
macwilko
macwilko•12mo ago
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
Solution
Fragly
Fragly•12mo ago
yea, that's what it's for
macwilko
macwilko•12mo ago
perfecto!!
Brody
Brody•12mo ago
absolutely, that's entirely what it's for bro beat me
Fragly
Fragly•12mo ago
beat you to it
macwilko
macwilko•12mo ago
very nice feature thankyou
Brody
Brody•12mo ago
curses
Brody
Brody•12mo ago
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
macwilko
macwilko•12mo ago
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 😄
Brody
Brody•12mo ago
sounds good!
macwilko
macwilko•12mo ago
I'm tempted to move to Railway redis now also... but I remember last time I was using it, there were frequent disconnects
Brody
Brody•12mo ago
also you can't connect to redis through the internal network
macwilko
macwilko•12mo ago
oh, the Meilisearch service won't be able to see the Redis?
Brody
Brody•12mo ago
it can, you just need to use the public redis address
macwilko
macwilko•12mo ago
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 ?
Brody
Brody•12mo ago
well what port does meilisearch run on?
macwilko
macwilko•12mo ago
I'm not sure, I'm going to try just plain meilisearch.railway.internal in the Host
Brody
Brody•12mo ago
this is an internal network after all, you do need to use the correct port in the url
macwilko
macwilko•12mo ago
yeah, maybe https isn't required if it's internal
Brody
Brody•12mo ago
https won't work, this is internal, internally the services run on http
macwilko
macwilko•12mo ago
could be 3331
Brody
Brody•12mo ago
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
macwilko
macwilko•12mo ago
yep! weirdly though parts of the app I don't run at all locally Meilisearch is one of them
Brody
Brody•12mo ago
makes sense