From 2b43e8f7a68416fe97220427970567924aab0d94 Mon Sep 17 00:00:00 2001 From: bivashy Date: Sun, 8 Jun 2025 20:57:10 +0500 Subject: [PATCH] Add `.env` example, clear `application.yaml` --- .env.example | 3 +++ src/main/resources/application.yaml | 19 ------------------- 2 files changed, 3 insertions(+), 19 deletions(-) create mode 100644 .env.example 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