Add .env example, clear application.yaml

This commit is contained in:
2025-06-08 20:57:10 +05:00
parent 958521526b
commit 2b43e8f7a6
2 changed files with 3 additions and 19 deletions

3
.env.example Normal file
View File

@ -0,0 +1,3 @@
DATABASE_URL=jdbc:postgresql://localhost:5433/postgres
DATABASE_USERNAME=username
DATABASE_PASSWORD=password

View File

@ -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: spring:
application: application:
name: anyame-user-service name: anyame-user-service