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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_DSN = ""
  11. # Redis configuration for broker, used for async background tasks
  12. CELERY_BROKER_URL = "redis://127.0.0.1:6379/0"
  13. CELERY_RESULT_BACKEND = "redis://127.0.0.1:6379/0"
  14. # They needs to be identical
  15. # You can't change them after setup !
  16. AP_DOMAIN = "localhost"
  17. SERVER_NAME = AP_DOMAIN
  18. BASE_URL = "https://" + AP_DOMAIN
  19. # Should we enable federation
  20. AP_ENABLED = False
  21. # Federation notes:
  22. # ActivityPub support isn't finished and things like update or delete might not work at all
  23. # Activate federation at your own risks
  24. SQLALCHEMY_DATABASE_URI = \
  25. 'postgresql+psycopg2://postgres@localhost/reel2bits'
  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. TESTING = False
  48. SQLALCHEMY_ECHO = False
  49. DEBUG_TB_PROFILER_ENABLED = False
  50. DEBUG_TB_INTERCEPT_REDIRECTS = False
  51. # Do not touch that
  52. SQLALCHEMY_TRACK_MODIFICATIONS = False
  53. SQLALCHEMY_RECORD_QUERIES = True
  54. # Users can change password
  55. # Do not disable, will breaks things
  56. SECURITY_CHANGEABLE = True
  57. # Password hash algorithm
  58. SECURITY_PASSWORD_HASH = 'bcrypt'
  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_QUERYSTRING_REVVING = True
  65. BABEL_DEFAULT_TIMEZONE = "UTC"