I have some code that runs once a day that establishes a proxy connection to my PostgreSQL database in order to perform offsite backups. The command I use to establish the proxy connection is:
flyctl proxy 15432:5432 -a [DB_TARGET]
This command has been working for a while, using FLY_ACCESS_TOKEN
from the environment variable that I created using fly auth token create
. However, today that token expired.
Is there a way to create a long lived token (1+ years) that has permission to run the proxy command?
Thanks