R
Railway2y 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
Percy2y ago
Project ID: N/A
robin
robinOP2y 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
Brody2y ago
why would you need to wait hours??
robin
robinOP2y 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
Brody2y ago
uh okay
robin
robinOP2y ago
hope it does work because I would have no clue how to fix it otherwise since I am very new to code
Brody
Brody2y 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
robinOP2y 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
Brody2y ago
okay im not gonna open that can of worms
robin
robinOP2y ago
lol
robin
robinOP2y 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
robinOP2y 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
Brody2y ago
i dont know, i have no experience with nocodb
robin
robinOP2y ago
oh okay no problem thanks tho
Want results from more Discord servers?
Add your server