BrianJM
BrianJM
CDCloudflare Developers
Created by konga on 4/9/2024 in #pages-discussions
Build configuration · Cloudflare Pages d...
I didn't notice you're using process.env until now. Different problem.
5 replies
CDCloudflare Developers
Created by konga on 4/9/2024 in #pages-discussions
Build configuration · Cloudflare Pages d...
Same problem. Did you find an answer @konga
5 replies
RRailway
Created by Daniel Glassford on 11/15/2023 in #✋|help
Reducing COGS of our service
21 replies
RRailway
Created by whalemare on 11/4/2023 in #✋|help
How to pull from private docker registry?
Could a script be executed on deployment (entry point) that clears the environment variables that should never be exposed or used within the app?
16 replies
RRailway
Created by whalemare on 11/4/2023 in #✋|help
How to pull from private docker registry?
An exploited instance would be the primary concern (for me). A script that dumps environment variables would expose them all.
16 replies
RRailway
Created by Gambaru Consulting on 10/3/2023 in #✋|help
Sleeping service not waking in response to POST on internal network
@Mig If I understand correctly, this would work for me. I believe this is similar to my previous idea (I didn't test yet) with HAProxy load balancing internal as primary and external as backup (to wake it up).
39 replies
RRailway
Created by alexbalandi on 9/26/2023 in #✋|help
Listen on udp workaround?
Most of what is necessary is posted above but its not a full working solution. Did you try that?
40 replies
RRailway
Created by Gambaru Consulting on 10/3/2023 in #✋|help
Sleeping service not waking in response to POST on internal network
Tha is for the feedback. I can probably test out the HAProxy idea next week and create a template (if viable). No need to apologize regarding the rollout information. I just noticed it didn't seem to wake (internal network) so I disabled it. I tried on a public app (I only use) and noticed the app does not sleep as often as I expected, and wakes unexpectedly. I think this may be due to bots scanning domains with LE certificates (this data is publicly accessible).
39 replies
RRailway
Created by BenIsenstein on 10/6/2023 in #✋|help
VPN support/options?
You can run tailscale for free (except resource usage on railway), either within the service or as a separate service (subnet router).
52 replies
RRailway
Created by VORP on 10/4/2023 in #✋|help
Get client IP
Thoughts on what luna mentioned? Perhaps it would accumulate through multiple proxy envoy layers?
It is a common case where a service wants to perform analytics based on the origin client’s IP address. Per the lengthy discussion on XFF, this can get quite complicated, so Envoy simplifies this by setting x-envoy-external-address to the trusted client address if the request is from an external client. x-envoy-external-address is not set or overwritten for internal requests. This header can be safely forwarded between internal services for analytics purposes without having to deal with the complexities of XFF.
29 replies
RRailway
Created by Gambaru Consulting on 10/3/2023 in #✋|help
Sleeping service not waking in response to POST on internal network
Are there known workarounds? I did not realize this until now (and it explains some things I observed). I have an idea. Place HAProxy layer between as a load balancer, with one public and one private domain as the backend, and set the load balancing so that the public domain is the backup. That would first attempt to use the private network, and fallback to public. Once the app wakes, the private network would be used. HAproxy uses almost no CPU and negligible RAM. This would probably cost around $1/mo, maybe less.
39 replies
RRailway
Created by VORP on 10/4/2023 in #✋|help
Get client IP
I believe X-Envoy-External-Address is also going to give you the real client IP. I assume this comes from the Railway edge gateway / load balancer. You can pass that through to your app and it will persist through multiple proxies. This may not be an issue for you but it can be treated as a custom header.
29 replies
RRailway
Created by iurysalino on 10/4/2023 in #✋|help
Hobby Plan
Do the services need to be always on? I'm not familiar with Spring Boot but, in my experience, Java tends to use and require more RAM, so pausing that layer may save a lot. Postgres has lower RAM usage when idle than MySQL, so that's good.
11 replies
RRailway
Created by kierzniak on 10/4/2023 in #✋|help
Slow performance for Pro Plan
How many SQL queries are executed in the GET request? Latency with DB connections can have significant impacts depending on the app. Take WordPress for example. Add 100ms latency to the DB layer and 500ms FTTB will become 10s pretty quickly. (WordPress executes 100-300 SQL queries per request.)
16 replies
RRailway
Created by 8v. on 9/6/2023 in #✋|help
region is only exclusive for pro plan?
That's fair and makes sense. Thank you for elaborating. 🙂
132 replies
RRailway
Created by 8v. on 9/6/2023 in #✋|help
region is only exclusive for pro plan?
I appreciate the feedback.
132 replies
RRailway
Created by 8v. on 9/6/2023 in #✋|help
region is only exclusive for pro plan?
For this use case, the most expensive component is bandwidth (hence the CDN where media is offloaded).
132 replies