-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.py.example
executable file
·75 lines (52 loc) · 2.25 KB
/
config.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#### BASIC CONFIGURATION
# Secret key (used for session cookie encryption). Needs to be set to some random string.
# Yes, just smash your keyboard for some random characters. No, don't publish them anywhere.
# Yes, you will need this. If you get random RuntimeErrors, you did not set this.
app_secret = ''
## You will need to use absolute paths!
# Base directory. You need to set this again in schilder.wsgi if you use WSGI. '/app' if you use docker.
basedir = '/path/to/schildergenerator'
# Temp directory for imagemagick/pdflatex work files (needs to be writeable)
tmpdir = '/tmp'
## All following directories derive from basedir, you don't really need to alter them
# Data directory (needs to be writeable)
datadir = basedir + '/data'
# HTML template directory
templatedir = basedir + '/templates'
# TeX template directory
textemplatedir = basedir + '/tex'
# TeX support file directory (all files that might be needed by a tex template)
texsupportdir = textemplatedir + '/support'
# PDF data directory (needs to be writeable)
pdfdir = datadir + '/pdf'
# Image data directory (needs to be writeable)
imagedir = datadir + '/images'
# Logo data directory (needs to be writeable)
# if logofolder in images folder you can choose them as image as well
logodir = imagedir + '/logo'
#Logo (muss im logopfad vorhanden sein)
standartLogo = 'genericlogo.png'
#Footer
standartFooter = 'Hier könnte Ihr Footer stehen'
# Cache dir (needs to be writable)
cachedir = datadir + '/cache'
# Upload temp directory (needs to be writeable)
uploaddir = datadir + '/upload'
# allowed image upload file extensions
allowed_extensions = set(['png', 'jpg', 'jpeg', 'gif', 'svg'])
#### PRINTER OPTIONS
# CUPS printer names
printers = {
'Human readable printer description' : 'CUPS-ID-String',
'Color Printer in room 1337' : 'Brother_ColorLaserJet_6V',
'B/W Printer in room 0' : 'HP_HL-38281',
}
printserver = 'localhost'
# additional lpr options. Use an empty list if not needed.
lproptions=['-Fa4g', '-N1', '-o fitplot']
#### DEVELOPERS ONLY
# Listening interface and port, usually '127.0.0.1' or '0.0.0.0'
# Only effective if started from command line (instead via webserver/WSGI),
# therefore these options would only be interesting to a developer.
listen = '127.0.0.1'
port = 5432