Something something like soundcloud but not like soundcloud.
Log in, upload records, done.
Simple, easy, KISS.
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.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Website translations
  2. BABEL_DEFAULT_LOCALE = "en"
  3. # Uploads dirs
  4. UPLOADED_SOUNDS_DEST = "/home/reel2bits/uploads/sounds"
  5. UPLOADS_DEFAULT_DEST = "/home/reel2bits/uploads"
  6. TEMP_DOWNLOAD_FOLDER = "/home/reel2bits/tmp"
  7. # Where is located Audiowaveform ?
  8. AUDIOWAVEFORM_BIN = "/usr/local/bin/audiowaveform"
  9. # If using sentry, set a DSN
  10. SENTRY_USER_ATTRS = ['name', 'email']
  11. SENTRY_DSN = ""
  12. # Redis configuration for broker, used for async background tasks
  13. CELERY_BROKER_URL = "redis://127.0.0.1:6379/0"
  14. CELERY_RESULT_BACKEND = "redis://127.0.0.1:6379/0"
  15. # They needs to be identical
  16. # You can't change them after setup !
  17. AP_DOMAIN = "localhost"
  18. SERVER_NAME = AP_DOMAIN
  19. BASE_URL = "https://" + AP_DOMAIN
  20. SQLALCHEMY_DATABASE_URI = \
  21. 'postgresql+psycopg2://postgres@database/reel2bits'
  22. # Should users confirm theire email address ?
  23. SECURITY_CONFIRMABLE = True
  24. # Can users register on this instance ?
  25. SECURITY_REGISTERABLE = True
  26. # Can users recover theire password ?
  27. SECURITY_RECOVERABLE = True
  28. # Salt used for password hashing
  29. # Do not change after users have registered
  30. SECURITY_PASSWORD_SALT = 'CHANGEME'
  31. # Do not change after users have registered
  32. SECRET_KEY = 'CHANGEME'
  33. # Mail setup
  34. MAIL_SERVER = "localhost"
  35. MAIL_PORT = 25
  36. MAIL_USE_TLS = False
  37. MAIL_USE_SSL = False
  38. MAIL_USERNAME = None
  39. MAIL_PASSWORD = None
  40. MAIL_DEFAULT_SENDER = f"postmaster@{AP_DOMAIN}"
  41. # Development only options
  42. DEBUG = False
  43. TESTING = False
  44. SQLALCHEMY_ECHO = False
  45. DEBUG_TB_PROFILER_ENABLED = False
  46. DEBUG_TB_INTERCEPT_REDIRECTS = False
  47. # Do not touch that
  48. SQLALCHEMY_TRACK_MODIFICATIONS = False
  49. SQLALCHEMY_RECORD_QUERIES = True
  50. # Users can change password
  51. # Do not disable, will breaks things
  52. SECURITY_CHANGEABLE = True
  53. # Password hash algorithm
  54. SECURITY_PASSWORD_HASH = 'bcrypt'
  55. SECURITY_SEND_REGISTER_EMAIL = True
  56. SECURITY_SEND_PASSWORD_CHANGE_EMAIL = True
  57. SECURITY_SEND_PASSWORD_RESET_NOTICE_EMAIL = True
  58. BOOTSTRAP_USE_MINIFIED = True
  59. BOOTSTRAP_SERVE_LOCAL = True
  60. BOOTSTRAP_QUERYSTRING_REVVING = True
  61. BABEL_DEFAULT_TIMEZONE = "UTC"