default_config.py 839 B

123456789101112131415161718192021222324252627
  1. import logging
  2. HOST = 'localhost'
  3. PORT = '8000'
  4. # pastelog is just "paste", but customized to accept logging options
  5. WSGI_SERVER = 'pastelog'
  6. # these are pastelog-specific options for logging engine
  7. TRANSLOGGER_OPTS = {
  8. 'logger_name': 'accesslog',
  9. 'set_logger_level': logging.WARNING,
  10. 'setup_console_handler': False }
  11. WSGI_SERVER_OPTIONS = {}
  12. DEBUG = True
  13. DB_URI = 'sqlite:///techrec.db'
  14. AUDIO_OUTPUT = 'output/'
  15. AUDIO_INPUT = 'rec/'
  16. AUDIO_INPUT_FORMAT = '%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3'
  17. AUDIO_OUTPUT_FORMAT = 'techrec-%(time)s-%(name)s.mp3'
  18. FORGE_TIMEOUT = 20
  19. FORGE_MAX_DURATION = 3600*5
  20. FFMPEG_OUT_CODEC = ['-acodec', 'copy']
  21. FFMPEG_OPTIONS = ['-loglevel', 'warning', '-n']
  22. FFMPEG_PATH = 'ffmpeg'
  23. # tag:value pairs
  24. TAG_EXTRA = {}
  25. # LICENSE URI is special because date need to be added
  26. TAG_LICENSE_URI = None