R
Railway•17mo 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•17mo ago
Project ID: d1c85c02-8ca5-43c3-adc6-4a24cb066e33
macwilko
macwilkoOP•17mo ago
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
Solution
Fragly
Fragly•17mo ago
yea, that's what it's for
macwilko
macwilkoOP•17mo ago
perfecto!!
Brody
Brody•17mo ago
absolutely, that's entirely what it's for bro beat me
Fragly
Fragly•17mo ago
beat you to it
macwilko
macwilkoOP•17mo ago
very nice feature thankyou
Brody
Brody•17mo ago
curses
Brody
Brody•17mo 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
macwilkoOP•17mo 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•17mo ago
sounds good!
macwilko
macwilkoOP•17mo 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•17mo ago
also you can't connect to redis through the internal network
macwilko
macwilkoOP•17mo ago
oh, the Meilisearch service won't be able to see the Redis?
Brody
Brody•17mo ago
it can, you just need to use the public redis address
macwilko
macwilkoOP•17mo 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•17mo ago
well what port does meilisearch run on?
macwilko
macwilkoOP•17mo ago
I'm not sure, I'm going to try just plain meilisearch.railway.internal in the Host
Brody
Brody•17mo ago
this is an internal network after all, you do need to use the correct port in the url
macwilko
macwilkoOP•17mo ago
yeah, maybe https isn't required if it's internal
Brody
Brody•17mo ago
https won't work, this is internal, internally the services run on http
macwilko
macwilkoOP•17mo ago
could be 3331
Brody
Brody•17mo 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
macwilkoOP•17mo ago
yep! weirdly though parts of the app I don't run at all locally Meilisearch is one of them
Brody
Brody•17mo ago
makes sense
Want results from more Discord servers?
Add your server