SimpleNotes/api/resources/application.prod.yaml

23 lines
481 B
YAML

database:
host: ${MYSQL_HOST}
port: 3306
name: ${MYSQL_DATABASE}
username: ${MYSQL_USER}
password: ${MYSQL_PASSWORD}
server:
host: 0.0.0.0
port: 8081
cors: ${CORS:-true}
jwt:
auth:
secret: ${JWT_SECRET} # Can be generated with `openssl rand -base64 32`
validity: 1
unit: HOURS
refresh:
secret: ${JWT_REFRESH_SECRET} # Can be generated with `openssl rand -base64 32`
validity: 15
unit: DAYS