config.py.example 3.46 KB
Newer Older
Robin Sonnabend's avatar
Robin Sonnabend committed
1
2
# (local) database
SQLALCHEMY_DATABASE_URI = "postgresql://user:password@host/database" # change this
Robin Sonnabend's avatar
Robin Sonnabend committed
3
SQLALCHEMY_TRACK_MODIFICATIONS = False # do not change
4

Robin Sonnabend's avatar
Robin Sonnabend committed
5
SECRET_KEY = "something random" # change this
6

7
DEBUG = False
8

Robin Sonnabend's avatar
Robin Sonnabend committed
9
# mailserver (optional)
10
11
12
13
14
MAIL_ACTIVE = True
MAIL_FROM = "protokolle@example.com"
MAIL_HOST = "mail.example.com:465"
MAIL_USER = "user"
MAIL_PASSWORD = "password"
15

Robin Sonnabend's avatar
Robin Sonnabend committed
16
# (local) message queue (necessary)
17
CELERY_BROKER_URL = "redis://localhost:6379/0"
Robin Sonnabend's avatar
Robin Sonnabend committed
18
19
CELERY_TASK_SERIALIZER = "pickle" # do not change
CELERY_ACCEPT_CONTENT = ["pickle"] # do not change
20

Robin Sonnabend's avatar
Robin Sonnabend committed
21
# this websites address
22
23
24
25
URL_ROOT = "protokolle.example.com"
URL_PROTO = "https"
URL_PATH = "/"
URL_PARAMS = ""
26

Robin Sonnabend's avatar
Robin Sonnabend committed
27
# ldap server (necessary)
Robin Sonnabend's avatar
Robin Sonnabend committed
28
29
30
31
LDAP_PROVIDER_URL = "ldaps://auth.example.com:389"
LDAP_BASE = "dc=example,dc=example,dc=com"
LDAP_PROTOCOL_VERSION = 3 # do not change

Robin Sonnabend's avatar
Robin Sonnabend committed
32
# CUPS printserver (optional)
Robin Sonnabend's avatar
Robin Sonnabend committed
33
34
35
36
37
38
39
40
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"]
]

Robin Sonnabend's avatar
Robin Sonnabend committed
41
42
43
# etherpad (optional)
ETHERPAD_ACTIVE = True
ETHERPAD_URL = "https://example.com/etherpad"
Robin Sonnabend's avatar
Robin Sonnabend committed
44
45
46
47
48
49
50
51
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

Robin Sonnabend's avatar
Robin Sonnabend committed
52
# wiki (optional)
Robin Sonnabend's avatar
Robin Sonnabend committed
53
54
55
56
57
58
59
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

Robin Sonnabend's avatar
Robin Sonnabend committed
60
61
62
63
# CalDAV calendar (optional)
CALENDAR_ACTIVE = True
CALENDAR_URL = "https://user:password@calendar.example.com/dav/"
CALENDAR_DEFAULT_DURATION = 3 # default meeting length in hours
Robin Sonnabend's avatar
Robin Sonnabend committed
64

Robin Sonnabend's avatar
Robin Sonnabend committed
65
SESSION_PROTECTION = "strong" # do not change
Robin Sonnabend's avatar
Robin Sonnabend committed
66

Robin Sonnabend's avatar
Robin Sonnabend committed
67
68
69
SECURITY_KEY = "some other random string" # change this

# lines of error description
70
ERROR_CONTEXT_LINES = 3
71

Robin Sonnabend's avatar
Robin Sonnabend committed
72
# pagination
Robin Sonnabend's avatar
Robin Sonnabend committed
73
74
75
PAGE_LENGTH = 20
PAGE_DIFF = 3

Robin Sonnabend's avatar
Robin Sonnabend committed
76
77
78
79
80
81
82
83
84
85
86
87
# upcoming meetings within this number of days from today are shown on the index page
MAX_INDEX_DAYS = 14

# mail to contact in case of complex errors
ADMIN_MAIL = "admin@example.com"

# accept protocols even with some errors
# useful for importing old protocols
# not recommended for regular operation
PARSER_LAZY = False

# minimum similarity (0-100) todos need to have to be considered equal
88
FUZZY_MIN_SCORE = 90
Robin Sonnabend's avatar
Robin Sonnabend committed
89

90
# choose something nice from fc-list
Robin Sonnabend's avatar
Robin Sonnabend committed
91
# Nimbus Sans looks very much like Computer Modern
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
FONTS = {
    "main": {
        "regular": "Nimbus Sans",
        "bold": "NimbusSans",
        "italic": "NimbusSans",
        "bolditalic": "NimbusSans"
    },
    "roman": {
        "regular": "Nimbus Roman",
        "bold": "Nimbus Roman",
        "italic": "Nimbus Roman",
        "bolditalic": "Nimbus Roman"
    },
    "sans": {
        "regular": "Nimbus Sans",
        "bold": "NimbusSans",
        "italic": "NimbusSans",
        "bolditalic": "NimbusSans"
    },
    "mono": {
        "regular": "Nimbus Mono PS",
        "bold": "Nimbus Mono PS",
        "italic": "Nimbus Mono PS",
        "bolditalic": "Nimbus Mono PS"
    }
}
Robin Sonnabend's avatar
Robin Sonnabend committed
118

Robin Sonnabend's avatar
Robin Sonnabend committed
119
# local filesystem path to save documents
Robin Sonnabend's avatar
Robin Sonnabend committed
120
121
DOCUMENTS_PATH = "documents"

Robin Sonnabend's avatar
Robin Sonnabend committed
122
# keywords indicating private protocol parts
Robin Sonnabend's avatar
Robin Sonnabend committed
123
124
PRIVATE_KEYWORDS = ["private", "internal", "privat", "intern"]

125
126
127
128
129
130
LATEX_BULLETPOINTS = [
    r"\textbullet",
    r"\normalfont \bfseries \textendash",
    r"\textasteriskcentered",
    r"\textperiodcentered"
]