R
Railway14mo ago
robin

how can I change the environment variable for my Railway project?

I want to change environment variable for nocodb but can't figure out where I need to change that value in Railway project dashboard. I am using the pre-built template which railway has for nocodb
15 Replies
Percy
Percy14mo ago
Project ID: N/A
robin
robin14mo ago
N/A oh thanks man let's hope it works made the changes have to wait few hours to see if it sticks
Brody
Brody14mo ago
why would you need to wait hours??
robin
robin14mo ago
it's a token value that changes every 10 hour needed to change it so it only changes after few weeks now have to wait and see if after 10 hour it changes or not
Brody
Brody14mo ago
uh okay
robin
robin14mo ago
hope it does work because I would have no clue how to fix it otherwise since I am very new to code
Brody
Brody14mo ago
youd have to update it every 10 hours if the token gets changed every 10 hours what is the token for might i ask?
robin
robin14mo ago
it's a auth token documentation specified I can change the value of when I need the the token to expire so I changed it to 9999999 so it shouldn't expire for a while
Brody
Brody14mo ago
okay im not gonna open that can of worms
robin
robin14mo ago
lol
robin
robin14mo ago
https://apis.nocodb.com/#tag/DB-Table-Row/operation/db-table-row-read "Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN." <- from nocodb documentation
robin
robin14mo ago
do you think this should work? It Would Suck trouble shooting if I have to wait 10 hours every time to get result
Brody
Brody14mo ago
i dont know, i have no experience with nocodb
robin
robin14mo ago
oh okay no problem thanks tho