Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • postgres_integration
  • s3compatible
  • intros
  • bootstrap4
  • modules
6 results

config.py.example

Blame
  • config.py.example 1.70 KiB
    # Defaults for development ,do not use in production!
    DEBUG = False
    SERVER_IP = 'localhost'
    VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de'
    VIDEOMOUNT = [{'mountpoint': 'files/protected/', 'prefix':'protected/'},{'mountpoint':'files/pub/','prefix':'pub/' }, {'mountpoint':'files/vpnonline/','prefix':'vpnonline/' }]
    #SECRET_KEY = 'something random'
    
    DB_SCHEMA = 'db_schema.sql'
    DB_DATA = 'db_example.sql'
    
    #DB_ENGINE = 'mysql'
    #MYSQL_HOST = 'localhost'
    #MYSQL_USER = 'videoag'
    #MYSQL_PORT = 3306
    #MYSQL_UNIX = '/var/run/mysqld/mysqld.sock'
    #MYSQL_PASSWD = 'somuchsecret'
    #MYSQL_DB = 'videos'
    
    DB_ENGINE = 'sqlite'
    SQLITE_DB = 'db.sqlite'
    SQLITE_INIT_SCHEMA = True
    SQLITE_INIT_DATA = True
    
    #JOBS_API_KEY = 'something random'
    
    #LDAP_HOST = 'auth.fsmpi.rwth-aachen.de'
    LDAP_PORT = 636
    LDAP_GROUPS = ['fachschaft']
    #ICAL_URL = 'https://user:password@mail.fsmpi.rwth-aachen.de/SOGo/....ics'
    ERROR_PAGE = 'static/500.html'
    RWTH_IP_RANGES = ['134.130.0.0/16', '137.226.0.0/16', '134.61.0.0/16', '192.35.229.0/24', '2a00:8a60::/32']
    FSMPI_IP_RANGES = ['137.226.35.192/29', '137.226.75.0/27', '137.226.127.32/27', '137.226.231.192/26', '134.130.102.0/26', '127.0.0.1/32']
    INTERNAL_IP_RANGES = ['127.0.0.0/8', '192.168.155.0/24', 'fd78:4d90:6fe4::/48']
    DISABLE_SCHEDULER = False
    #MAIL_SERVER = 'mail.fsmpi.rwth-aachen.de'
    MAIL_FROM = 'Video AG-Website <videoag-it@lists.fsmpi.rwth-aachen.de>'
    #MAIL_ADDRESS_OVERWRITE = 'videoag-it@lists.fsmpi.rwth-aachen.de'
    MAIL_SUFFIX = 'fsmpi.rwth-aachen.de'
    MAIL_DEFAULT = 'Video AG <videoag@fsmpi.rwth-aachen.de>'
    MAIL_ADMINS = 'videoag-it@lists.fsmpi.rwth-aachen.de'
    STREAMING_SERVER = 'rtmp://video-web-0.fsmpi.rwth-aachen.de/src/'
    BACKUP_STREAMING_SERVER = 'rtmp://video-web-1.fsmpi.rwth-aachen.de/src/'