Another Ham Radio Logbook -- Web, Multi-user multiple-logbook, with eQSL upload support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.py.sample 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Website translations
  2. BABEL_DEFAULT_LOCALE = "en"
  3. # Paginations
  4. # TBD later
  5. # Lookup method for callsigns infos, available : [hamqth]
  6. LOOKUP_METHOD = "hamqth"
  7. # For QRZ integration
  8. QRZ_USERNAME = ""
  9. QRZ_PASSWORD = ""
  10. # Uploads dirs
  11. UPLOADED_PICTURES_DEST = "/home/dashie/dev/ahrl/uploads/pictures"
  12. UPLOADS_DEFAULT_DEST = "/home/dashie/dev/ahrl/uploads"
  13. TEMP_DOWNLOAD_FOLDER = "/home/dashie/dev/ahrl/tmp"
  14. # If using sentry, set a DSN
  15. SENTRY_USER_ATTRS = ['name', 'email']
  16. SENTRY_DSN = ""
  17. # Domain serving this app
  18. AP_DOMAIN = "mylog.myname.me"
  19. BASE_URL = f"https://{AP_DOMAIN}"
  20. # You can use a PostgreSQL database
  21. SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://postgres@database:5432/ahrl"
  22. # Or MySQL (at your own risks)
  23. # SQLALCHEMY_DATABASE_URI = 'mysql://user:pass@host/ahrl'
  24. # Or Maybe SQLite3 (at your own risks)
  25. # SQLALCHEMY_DATABASE_URI = 'sqlite:///ahrl.db'
  26. # Should users confirm theire email address ?
  27. SECURITY_CONFIRMABLE = True
  28. # Can users register on this instance ?
  29. SECURITY_REGISTERABLE = True
  30. # Can users recover theire password ?
  31. SECURITY_RECOVERABLE = True
  32. # Salt used for password hashing
  33. # Do not change after users have registered
  34. SECURITY_PASSWORD_SALT = 'CHANGEME'
  35. # Do not change after users have registered
  36. SECRET_KEY = "CHANGEME"
  37. # Mail setup
  38. MAIL_SERVER = "localhost"
  39. MAIL_PORT = 25
  40. MAIL_USE_TLS = False
  41. MAIL_USE_SSL = False
  42. MAIL_USERNAME = None
  43. MAIL_PASSWORD = None
  44. MAIL_DEFAULT_SENDER = f"postmaster@{AP_DOMAIN}"
  45. # Development only options
  46. DEBUG = False
  47. SQLALCHEMY_ECHO = False
  48. DEBUG_TB_PROFILER_ENABLED = False
  49. DEBUG_TB_INTERCEPT_REDIRECTS = False
  50. # Do not touch that
  51. SQLALCHEMY_TRACK_MODIFICATIONS = False
  52. SQLALCHEMY_RECORD_QUERIES = True
  53. # Users can change password
  54. # Do not disable, will breaks things
  55. SECURITY_CHANGEABLE = True
  56. # Password hash algorithm
  57. SECURITY_PASSWORD_HASH = 'bcrypt'
  58. BABEL_DEFAULT_TIMEZONE = "UTC"
  59. SECURITY_SEND_REGISTER_EMAIL = True
  60. SECURITY_SEND_PASSWORD_CHANGE_EMAIL = True
  61. SECURITY_SEND_PASSWORD_RESET_NOTICE_EMAIL = True
  62. BOOTSTRAP_USE_MINIFIED = True
  63. BOOTSTRAP_SERVE_LOCAL = True
  64. BOOTSTRAP_CDN_FORCE_SSL = True
  65. BOOTSTRAP_QUERYSTRING_REVVING = True