chore: move config parameter from database to role

The `app.settings.jwt_secret` and `app.settings.jwt_exp` were set at the
database level. Realisticly these only need to be available to the
postgres role.
This commit is contained in:
Etienne Stalmans committed 2024-10-04 15:49:29 +02:00
1 parent f9fb95abe6
commit e0ea1867bc
1 file changed
+2 -2
+2 -2
View File
@@ -1,5 +1,5 @@
\set jwt_secret `echo "$JWT_SECRET"`
\set jwt_exp `echo "$JWT_EXP"`
ALTER DATABASE postgres SET "app.settings.jwt_secret" TO :'jwt_secret';
ALTER DATABASE postgres SET "app.settings.jwt_exp" TO :'jwt_exp';
ALTER ROLE postgres IN DATABASE postgres SET "app.settings.jwt_secret" TO :'jwt_secret';
ALTER ROLE postgres IN DATABASE postgres SET "app.settings.jwt_exp" TO :'jwt_exp';