railwayapp / templates

Railway starters
https://railway.app
MIT License
334 stars 150 forks source link

Add `shlink` Template #372

Open yasyf opened 1 year ago

yasyf commented 1 year ago

Template URL

https://railway.app/new/template/JGjFtC?referralCode=1VGha_

What does this template deploy?

shlink - the definitive self-hosted URL shortener.

Demo project

No response

FarazPatankar commented 1 year ago

Hey @yasyf, thanks for adding this template. Could you replace the default value of the API_URL with a templated variable that'll auto-populate the value?

The new value would be https://${{ RAILWAY_STATIC_URL }}. You can read more about Railway provided variables in our docs.

yasyf commented 1 year ago

@FarazPatankar that won't be right, since it's needs to be the public URL of the other service, not the one this is being set on. I tried to find a way to read the vars of another service but couldn't find a way!