EiSimp / Book-Archive

BookPals
https://book-archive-production.up.railway.app/homepage
0 stars 0 forks source link

Database config security #7

Closed wcs3 closed 4 months ago

wcs3 commented 4 months ago

Railway shares environment variables between services within the same project, so, if my understanding is correct, the database config can be secured by replacing the plaintext params with the PostgreSQL service's exposed variables.

Caveat is that a local environment won't have automatic access to a database, so devs will need to prepare their own testing database, or set their environment variables to point to the production database.