2 years ago
Description: Reverse proxy with the ability to inject custom JS CSS
Category: Other
7 Replies
2 years ago
I don't see how this is going to work if you are hardcoding the resolver to 127.0.0.11 and turning off ipv6, on account of that not being the internal dns resolver Railway uses and internal domains using exclusively ipv6.
I ask that you unpublish this template for the time being, feel free to republish it when you have a working template, and thank you for understanding!
2 years ago
Hi, it is already working in one of my project. here: https://houselink-report.up.railway.app/
check the attached file to see the custom css js injection.
here is the service under the hood if you need to compare: https://huy-data-test.up.railway.app/
Attachments
2 years ago
Just tested it and it indeed does not work with the internal network as I have previously mentioned -
host not found in upstream "hello-world.railway.internal" in /etc/nginx/nginx.conf:25This is also only a quickly thrown-together personal project, so I have to ask you to please unpublish.
You would be welcome to republish it when you have it working, and a higher quality template, E.g. nginx-inject-css-js is not an appealing name.
2 years ago
Do you have another name for it? it describes perfectly what it does. I dont think I will change the name because it is not appealing to you.
about your test, I have checked and see I forgot to add one env variable. I have updated and added ENABLEALPINEPRIVATE_NETWORKIN=true. it should work now. thank you for testing it.
I'm new to railway.app, and I plan to use it across multiple accounts of mine. Not sure what you mean when you mention "a higher quality template" since this one is simple but actually does the job and there is no alternative already exists in Railway template. After it works with new env var added, not really sure what should I do to make it "higher quality" when it already does exactly what it suppose to do
2 years ago
Do you have another name for it? it describes perfectly what it does. I dont think I will change the name because it is not appealing to you.
It is not a personal opinion, the name is unappealing and looks incredibly spammy, we want to keep the marketplace tidy, and that includes the names of the templates.
I have updated and added ENABLEALPINEPRIVATE_NETWORKIN=true. it should work now.
I have added that variable too, and it does not change anything, please see my first message for a few reasons why it won't work.
I plan to use it across multiple accounts of mine.
That does not require you to publish it publically, you can clone templates across accounts without ever publishing it.
Not sure what you mean when you mention "a higher quality template" since this one is simple but actually does the job and there is no alternative already exists in Railway template. After it works with new env var added, not really sure what should I do to make it "higher quality" when it already does exactly what it suppose to do
Higher quality meaning, better name (for both template and service), better overview, having a service icon, a health check, better developer experience (what is SERVER_NAME and why am I asked to set it), etc.
In an effort to keep the marketplace tidy, I ask that you please unpublish this template.
2 years ago
the name got inspired by this template: https://railway.app/template/bYH8Xt
despite of the name being kebab case, I dont see anything wrong with the name
again it is a simple template but does the job. not a brand new open source or anything. searching from the marketplace it alreayd has Nginx logo.
Okay I will unpublish it shortly and will test it more. what is the template of your hello world service and I will use it to test.
btw what I mean by "across accounts", is not across organization I'm in, but actually different account login. I tried to deploy from github repo but seems like it has to linked to my github account
2 years ago
the name got inspired by this template: https://railway.app/template/bYH8Xt despite of the name being kebab case, I dont see anything wrong with the name
Thank you for the link, I will have to unpublish that template at some point, for its name, quality, and low success rate.
again it is a simple template but does the job. not a brand new open source or anything.
Yes, it does the job for you because it's a personal project, but it does not work with the private network and that is a big flaw.
searching from the marketplace it alreayd has Nginx logo.
Yeah, the template logo is fine, but the service is missing a logo too.
btw what I mean by "across accounts", is not across organization I'm in, but actually different account login. I tried to deploy from github repo but seems like it has to linked to my github account
Going further into details on that point I made -
Templates are always public, but they are not always published to the marketplace, meaning you can create a template on one account without publishing it and then open its share link on another account then deploy it all the same, without it ever being public.
If you would like to be able to have the template appear in multiple accounts so that you can deploy it into a project you can fork the template with this tool - https://bookmarklets.up.railway.app/template-clone-v2/