SimpleNotes/api/resources/application.prod.yaml
2020-06-26 02:23:40 +02:00

23 lines
490 B
YAML

database:
host: ${MYSQL_HOST}
port: 3306
name: ${MYSQL_DATABASE}
username: ${MYSQL_USER}
password: ${MYSQL_PASSWORD}
server:
host: 0.0.0.0
port: ${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