default_config.py 780 B

123456789101112131415161718192021222324
  1. HOST = 'localhost'
  2. PORT = '8000'
  3. WSGI_SERVER = 'wsgiref'
  4. WSGI_SERVER_OPTIONS = {}
  5. ### Beware: we use global objects (the processqueue); you can't use
  6. ### worker_class=sync in gunicorn, and probably other similar deployment won't
  7. ### work
  8. ### A dirty check is:
  9. ### * go to /old.html
  10. ### * create something
  11. ### * go to /api/jobs
  12. ### * refresh a lot and see if the result is always the same
  13. #WSGI_SERVER = 'gunicorn'
  14. #WSGI_SERVER_OPTIONS = {'workers': 4, 'worker_class': 'eventlet' }
  15. DEBUG = True
  16. DB_URI = 'sqlite:///techrec.db'
  17. AUDIO_OUTPUT = 'output/'
  18. AUDIO_INPUT = 'rec/'
  19. AUDIO_INPUT_FORMAT = '%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3'
  20. AUDIO_OUTPUT_FORMAT = 'techrec-%(time)s-%(name)s.mp3'
  21. FORGE_TIMEOUT = 20
  22. FORGE_MAX_DURATION = 3600*5
  23. FFMPEG_OPTIONS = ['-loglevel', 'warning', '-n']