default.json 721 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "host": "localhost",
  3. "port": 3030,
  4. "public": "./public/",
  5. "origins": [
  6. "http://localhost:3030"
  7. ],
  8. "paginate": {
  9. "default": 10,
  10. "max": 50
  11. },
  12. "postgresql": {
  13. "client": "pg",
  14. "connection": "postgres://musare:PASSWORD@postgres:5432/musare"
  15. },
  16. "authentication": {
  17. "entity": "user",
  18. "service": "users",
  19. "secret": "9imbItLfHsGpCWPtt71nRGRXtSA0TzmN",
  20. "authStrategies": [
  21. "jwt",
  22. "local"
  23. ],
  24. "jwtOptions": {
  25. "header": {
  26. "typ": "access"
  27. },
  28. "audience": "https://yourdomain.com",
  29. "algorithm": "HS256",
  30. "expiresIn": "1d"
  31. },
  32. "local": {
  33. "usernameField": "email",
  34. "passwordField": "password"
  35. }
  36. }
  37. }