forked from makinacorpus/convertit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.ini
70 lines (58 loc) · 1.71 KB
/
production.ini
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
[app:main]
use = egg:convertit
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
convertit.downloads_path = /var/cache/convertit/downloads
convertit.downloads_max_age = 60
convertit.converted_path = /var/cache/convertit/converted
convertit.converted_max_age = 60
# The retrieve url of converted files
# It can be a full url like http://static.domain.tld/full/path/
convertit.converted_url = converted
# Available options:
# url_hostname: the url hostname
# url_port: the url port
# url_dirname: the url path's dirname with '/' replaced by '_'
# url_filename: filename part of the url path's basename
# url_extension: extension part of the url path's basename
# extension: the converted extension
# Exemple: url=http://exemple.com:8080/path/to/foo.bar&to=application/pdf
# url_hostname: exemple.com
# url_port: 8080
# url_dirname: path_to
# url_filename: foo
# url_extension: .bar
# extension: .pdf
convertit.converted_name = {url_hostname}_{url_port}_{url_dirname}_{url_filename}{extension}
convertit.converters =
convertit.converters.unoconv
convertit.converters.inkscape
[server:main]
use = egg:gunicorn#main
host = localhost
port = 6543
# Begin logging configuration
[loggers]
keys = root, convertit
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_convertit]
level = WARN
handlers =
qualname = convertit
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# End logging configuration