-
Notifications
You must be signed in to change notification settings - Fork 19
/
loris2.conf
106 lines (89 loc) · 3 KB
/
loris2.conf
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# loris2.conf
#
# This file is parsed by the ConfigObj library:
#
# <http://www.voidspace.org.uk/python/configobj.html>
#
# ConfigObj uses an ini-like syntax with a few important changes and extensions,
# which are explained here:
#
# <http://www.voidspace.org.uk/python/configobj.html#config-files>
#
# Note that 'unrepr' mode is used, which means that values are parsed as Python
# datatypes, e.g. strings are in quotes, integers are not, True is used for the
# boolean value TRUE, False for the boolean value FALSE, and lists are in []
# with commas (',') as the separators.
#
# <http://www.voidspace.org.uk/python/configobj.html#unrepr-mode>
#
# String interpolation is disabled.
#
[loris.Loris]
tmp_dp = '/tmp/loris2/tmp' # r--
www_dp = '/var/www/loris2' # r-x
run_as_user = 'loris'
run_as_group = 'loris'
enable_caching = True
redirect_canonical_image_request = False
redirect_id_slash_to_info = True
[logging]
log_to = 'file' # 'console'|'file'
log_level = 'INFO' # 'DEBUG'|'INFO'|'WARNING'|'ERROR'|'CRITICAL'
log_dir = '/var/log/loris2' # rw-
max_size = 5242880 # 5 MB
max_backups = 5
format = '%(asctime)s (%(name)s) [%(levelname)s]: %(message)s'
[resolver]
impl = 'loris.resolver.SimpleFSResolver'
src_img_root = '/usr/local/share/images' # r--
#Example of one version of SimpleHTTResolver config
#[resolver]
#impl = 'loris.resolver.SimpleHTTPResolver'
#source_prefix='https://<server>/fedora/objects/'
#source_suffix='/datastreams/accessMaster/content'
#cache_root='/usr/local/share/images/loris'
#user='<if needed else remove this line>'
#pw='<if needed else remove this line>'
# Sample config for TemplateHTTResolver config
# [resolver]
# impl = 'loris.resolver.TemplateHTTPResolver'
# cache_root='/usr/local/share/images/loris'
# templates = 'a, b, fedora, devfedora'
# a='http://example.edu/images/%s'
# b='http://example.edu/images-elsewhere/%s'
# fedora='http://<server>/fedora/objects/%s/datastreams/accessMaster/content'
## optional settings
# default_format
# head_resolvable = False
[img.ImageCache]
cache_dp = '/var/cache/loris' # rwx
[img_info.InfoCache]
cache_dp = '/var/cache/loris' # rwx
[transforms]
dither_bitonal_images = False
target_formats = ['jpg','png','gif','webp']
[[png]]
impl = 'JPG_Transformer'
[[jpg]]
impl = 'JPG_Transformer'
[[tif]]
impl = 'TIF_Transformer'
[[jp2]]
impl = 'KakaduJP2Transformer'
tmp_dp = '/tmp/loris/tmp/jp2' # rwx
kdu_expand = '/usr/local/bin/kdu_expand' # r-x
kdu_libs = '/usr/local/lib' # r--
num_threads = '4' # string!
mkfifo = '/usr/bin/mkfifo' # r-x
map_profile_to_srgb = False
srgb_profile_fp = '/usr/share/color/icc/colord/sRGB.icc' # r--
# Sample config for the OpenJPEG Transformer
# [[jp2]]
# src_format = 'jp2'
# impl = 'OPJ_JP2Transformer'
# tmp_dp = '/tmp/loris/tmp/jp2' # rwx
# opj_decompress = '/usr/local/bin/opj_decompress' # r-x
# opj_libs = '/usr/local/lib' # r--
# mkfifo = '/usr/bin/mkfifo' # r-x
# map_profile_to_srgb = True
# srgb_profile_fp = '/usr/share/color/icc/colord/sRGB.icc' # r--