diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e71880c --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +DATABASE_URL=jdbc:postgresql://localhost:5433/postgres +DATABASE_USERNAME=username +DATABASE_PASSWORD=password \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 2ece1f0..b39d7ef 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,22 +1,3 @@ -jwt: - secret: ${JWT_SECRET} -authorization: - roles: - - name: ROLE_USER - access-expiry: '1d' - refresh-expiry: '90d' - privileges: - - READ_PRIVILEGE - - name: ROLE_ADMIN - access-expiry: '30m' - refresh-expiry: '2h' - privileges: - - WRITE_PRIVILEGE - - CHANGE_PASSWORD_PRIVILEGE - hierarchy: | - ROLE_ADMIN > ROLE_USER - default-role: ROLE_USER - spring: application: name: anyame-user-service