Add .env
example, clear application.yaml
This commit is contained in:
3
.env.example
Normal file
3
.env.example
Normal file
@ -0,0 +1,3 @@
|
||||
DATABASE_URL=jdbc:postgresql://localhost:5433/postgres
|
||||
DATABASE_USERNAME=username
|
||||
DATABASE_PASSWORD=password
|
@ -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
|
||||
|
Reference in New Issue
Block a user