api.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # config file for RideLogic web api
  2. #
  3. # Copyright (c) 2019 Clementine Computing LLC.
  4. #
  5. # This file is part of PopuFare.
  6. #
  7. # PopuFare is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # PopuFare is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  19. #
  20. # api password
  21. RIDELOGIC_API_PASS=####
  22. # default credential information
  23. RIDELOGIC_DEFAULT_MAG_TRACK=2
  24. RIDELOGIC_DEFAULT_RF_LENGTH=26
  25. RIDELOGIC_DEFAULT_RF_SITE=137
  26. # default group membership and hash algorithm
  27. RIDELOGIC_DEFAULT_GROUP_NAME=####
  28. RIDELOGIC_DEFAULT_HASH_ALGORITHM=sha1
  29. # default session token length
  30. RIDELOGIC_TOKEN_LENGTH=32
  31. # maximum number of characters to a field allowed
  32. RIDELOGIC_MAX_FIELD_LENGTH=256
  33. # 120 seconds to fulfill api request
  34. RIDELOGIC_STALE_SEC_SESSION=120
  35. # Allow a day window after registration
  36. # for account activation (86400=24*60*60)
  37. RIDELOGIC_STALE_SEC_REGISTRATION=86400
  38. # Allow a two day window to reset password
  39. # after a password reset attempt (172800=48*60*60)
  40. RIDELOGIC_STALE_SEC_PASSWORD_RESET=172800
  41. # DB information
  42. RIDELOGIC_DB=####
  43. RIDELOGIC_DB_SERVER=####
  44. RIDELOGIC_DB_USERNAME=####
  45. RIDELOGIC_DB_PASSWORD=####