Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying on Railway using template - Unsure on required environment variables before deployment #18

Open
MrCredible opened this issue Jun 8, 2024 · 1 comment

Comments

@MrCredible
Copy link

While trying to deploy on Railway using the given template, I was not sure what was needed for a few items.

The Railway template environment variables requires the items below to be provided before deployment is allowed and I am unsure how to move forward.

  • Secret_key : Unsure app/service this key is supposed to come from
  • Trakt_Client_ID, Trakt_client_secret, and Trakt_OAuth_Token - When setting up a connected app on trakt, what is used for the redirect URI?
  • TMDB Key and Tokens : Before the owner of the repo stopped hosting on Railway, I never had to create a TMDB (that I can remember). So are these required?
  • Redis URL : Unsure where this is supposed to come from if the railways template is supposed deploy Redis.
  • ImgProxy, Next Auth, Sentry - All these are also part of the deployment template, correct?

Apologies if my questions seem obvious on where to find these answers, but I have little experience with deployment of hosted services.

railway deployment requirements railway deployment requirements 2
@MrCredible MrCredible changed the title Deploying on Railways using template - Unsure on required environment variables before deployment Deploying on Railway using template - Unsure on required environment variables before deployment Jun 8, 2024
@radityaharya
Copy link
Owner

Hey there, sorry for the late reply. I haven't updated the template, and yes I haven't got around to get the app running again due to personal reasons.

  1. secret_key isn't used anymore, I was using it as a JWT salt before I moved to nextjs.
  2. The redirect url should be http[s]://[base_url]/api/auth/callback/trakt as it's using the default callback path for nextauth
  3. Yes, TMDB is used in the backend to get a few info that trakt doesn't return in the show/movie details such as broadcaster and images.
  4. I forgot to pass variables from the services
  5. imgproxy isn't in the template yet as I added it after I made the template, and sentry is supposed to be optional as an error tracker and I removed the default value as people are starting to self host it and it's filling my sentry with other people's instance, but I haven't got around to make it ignore if it doesn't have an ingest url set.

I'm pretty sure the app itself is still working and you should be able to run it, but you'll need to host those subservices yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants