-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.env_example
78 lines (64 loc) · 2.93 KB
/
.env_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
76
77
# Configure the server domain in the env file, so the UI can fetch the information
NEXT_PUBLIC_API_URL="http://localhost:3000"
# Configure the location of the database
DATABASE_URL = "file:./dev.db"
# URL for NEXTAUTH
NEXT_PUBLIC_NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL=http://localhost:3000
# Secret for passwords
NEXTAUTH_SECRET=<some random string>
# For bootstrapping you might want to disable authenatication ("true" or "false"), handle with care!
AUTH_ENABLED=false
# Storage file path for the cover images (without trailing /, this is added by the app). The example below works for the docker container
COVERIMAGE_FILESTORAGE_PATH=/app/public/coverimages
# Login Session Timeout for inactivity in seconds (e.g. 500)
LOGIN_SESSION_TIMEOUT=seconds
# Max size of file if an OpenBiblio migration json is used
MAX_MIGRATION_SIZE=250mb
# Configure if content security policy is set on the http headers, if you don't want CSR header, use "insecure"
SECURITY_HEADERS=insecure
# School name
SCHOOL_NAME="Mustermann Schule"
LOGO_LABEL="schullogo.jpg"
EXTENSION_DURATION_DAYS=22
#number of books per page when browsing
NUMBER_BOOKS_OVERVIEW=20
#maximum of books you envisage (required for pagination/search)
NUMBER_BOOKS_MAX=10000
# Reminder (Mahnung) configuration
REMINDER_TEMPLATE_DOC = "mahnung-template.docx"
REMINDER_RESPONSIBLE_NAME = "Schulbücherei"
REMINDER_RESPONSIBLE_EMAIL = "[email protected]"
REMINDER_RENEWAL_COUNT = 5
# book label configuration
# in BOOKLABEL_BARCODE_PLACEHOLDER use "logo" for a school logo png and "barcode" for a barcode
BOOKLABEL_LOGO=schullogo_buchlabel.png
BOOKLABEL_MARGIN_LEFT = 3
BOOKLABEL_MARGIN_TOP = 2
BOOKLABEL_SPACING = 5.5
BOOKLABEL_AUTHOR_SPACING = "4.2cm"
BOOKLABEL_ROWSONPAGE = 5
BOOKLABEL_COLUMNSONPAGE = 2
BOOKLABEL_BARCODE_WIDTH = "3cm"
BOOKLABEL_BARCODE_HEIGHT = "1.6cm"
BOOKLABEL_BARCODE_VERSION = "code128"
BOOKLABEL_BARCODE_PLACEHOLDER = "barcode"
# User label configuration
USERID_LABEL_IMAGE=userlabeltemplate.jpg
USERLABEL_WIDTH = "42vw"
USERLABEL_PER_PAGE=6
# If your label image does not have a color bar under the image
# you can specify a bar here to be used.
# Options are width and height in points, and color
USERLABEL_SEPARATE_COLORBAR=[250,70,"lightgreen"]
# Configure additional Information lines. You cann add additional lines with schema 'USER_LABEL_N' for line N
# Value is: [content, top, left, width,margin, color, fontsize]
# content can be either text, or any fields of user. Use 'User.' to mark a field as an user field.
# If you use multiple fields they need to be separated by at least one space
USERLABEL_LINE_1= ["User.firstName User.lastName","75%","3%","35vw","2pt","black",14]
USERLABEL_LINE_2= ["Mustermann Schule","83%","3%","35vw","2pt","black",10]
USERLABEL_LINE_3= ["User.schoolGrade","90%","3%","35vw","2pt","black",12]
# Add Userlabel Barcode of ID.
# top, left, width, height, barcode version
# comment out to not add a barcode
USERLABEL_BARCODE = ["80%","63%", "3cm","1.6cm","code128"]