eggsovereasy
Creating service using GraphQL API
I'm trying to create a service using the GraphQL API using the
serviceCreate
mutation, but have two problems
1. How do I send in variables? The doc comment in the GQL schema says "The ServiceVariables scalar type represents values as the TypeScript type: Record<string, string>. Example: "{ foo: 'bar', baz: 'qux' }". So I tried exactly that with this mutation:
and input
The service does get created, but the variables come in as:
2. My other issue, is that the service does not deploy after it is created. I found the mutation serviceInstanceRedeploy
but that only seems to work for services that have already deployed before.27 replies
nginx proxy_pass to private network
Hello, I am trying out the new private networking feature. I have a react application running in a service and a container running nginx in another service. I would like to have a public url for the nginx container, but only private for the react app. I setup nginx to do a reverse proxy to the app, which works fine if I use a public url for the react app, but I can't get to work at all with the private url.
nginx: [emerg] host not found in upstream "gsandf-com-app.railway.internal" in /etc/nginx/conf.d/default.conf:29
Also, is there an ENV variable like RAILWAY_SERVER_{name}_URL
for private urls?24 replies
Is there a way to view the invoice by project.
Under "usage" it has everything broken down by project, which is very nice. However, once the invoice is paid and available for download it seems to be no longer possible to see actual costs at the project level. This would be very useful to us.
9 replies
RAILWAY_{serviceName}_STATIC_URL not working
I have an nginx container proxying to an application container and am trying to reference the application container url. The application container is named 'frontend' so I set an env variable equal to
${{RAILWAY_FRONTEND_STATIC_URL}}
but it's coming through blank. What am I doing wrong here?
product id: f44954e4-11aa-4f45-9e1a-302641b5dc42 using the 'separate-nginx' environment16 replies