Skip to content
Snippets Groups Projects
Select Git revision
  • 51ecbdd124ab38b8de6b631e79daaac64366c9ed
  • master default protected
  • md-export
  • th/mail
  • 179-einladungen-zum-aushaengen-drucken
5 results

config.py.example

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    config.py.example 3.70 KiB
    # (local) database
    SQLALCHEMY_DATABASE_URI = "postgresql://user:password@host/database" # change this
    SQLALCHEMY_TRACK_MODIFICATIONS = False # do not change
    
    SECRET_KEY = "something random" # change this
    
    DEBUG = False
    
    # mailserver (optional)
    MAIL_ACTIVE = True
    MAIL_FROM = "protokolle@example.com"
    MAIL_HOST = "mail.example.com:465"
    MAIL_USER = "user" # set to "" for unauthenticated sending
    MAIL_PASSWORD = "password" # set to "" for unauthenticated sending
    MAIL_USE_TLS = True # should match the port in MAIL_HOST (if present there)
    
    # (local) message queue (necessary)
    CELERY_BROKER_URL = "redis://localhost:6379/0"
    CELERY_TASK_SERIALIZER = "pickle" # do not change
    CELERY_ACCEPT_CONTENT = ["pickle"] # do not change
    
    # this websites address
    URL_ROOT = "protokolle.example.com"
    URL_PROTO = "https"
    URL_PATH = "/"
    URL_PARAMS = ""
    
    # ldap server (necessary)
    LDAP_PROVIDER_URL = "ldaps://auth.example.com:389"
    LDAP_BASE = "dc=example,dc=example,dc=com"
    LDAP_PROTOCOL_VERSION = 3 # do not change
    
    # CUPS printserver (optional)
    PRINTING_ACTIVE = True
    PRINTING_SERVER = "printsrv.example.com:631"
    PRINTING_USER = "protocols"
    PRINTING_PRINTERS = [
        "example_printer": ["Duplex=DuplexNoTumble", "option2=value"],
        "other_printer": ["list", "of", "options"]
    ]
    
    # etherpad (optional)
    ETHERPAD_ACTIVE = True
    ETHERPAD_URL = "https://example.com/etherpad"
    EMPTY_ETHERPAD = """Welcome to Etherpad!
    
    This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
    
    Get involved with Etherpad at http://etherpad.org
    
    """ # do not change
    
    # wiki (optional)
    WIKI_ACTIVE = True
    WIKI_API_URL = "https://wiki.example.com/wiki/api.php"
    WIKI_ANONYMOUS = False
    WIKI_USER = "user"
    WIKI_PASSWORD = "password"
    WIKI_DOMAIN = "domain" # set to None if not necessary
    
    # CalDAV calendar (optional)
    CALENDAR_ACTIVE = True
    CALENDAR_URL = "https://user:password@calendar.example.com/dav/"
    CALENDAR_DEFAULT_DURATION = 3 # default meeting length in hours
    CALENDAR_MAX_REQUESTS = 10
    
    SESSION_PROTECTION = "strong" # do not change
    
    SECURITY_KEY = "some other random string" # change this