-
Notifications
You must be signed in to change notification settings - Fork 4
/
dirpy.conf
129 lines (86 loc) · 3.37 KB
/
dirpy.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[global]
## All options below are commented out and will inherit their default
## values if not explicitly set. To set a variable, uncomment the
## <varname>=<value> line and change the existing value (which should
## match the default value).
## pid_file: Location to drop our process ID file to
## default: /var/run/dirpy/dirpy.pid
#pid_file=/var/run/dirpy/dirpy.pid
## log_file: Path to the Dirpy log file
## default: /var/log/dirpy.log
#log_file=/var/log/dirpy.log
## bind_addr: Address to listen for requests on
## default: 0.0.0.0
#bind_addr=0.0.0.0
## bind_port: Port to listen for requests on
## default: 3000
#bind_port=3000
## num_workers: Number of worker threads to launch on program start
## default: 2 x # of cores in system. Any place where we are doing
## image proxying, we want a larger pool of worker threads, since we
## spend a lot of time sending requested out to our CDN.
#num_workers=4
## http_root: Root directory to use for disk-based image resizing
## default: /var/www/html
#http_root=/var/www/html
## max_pixels: Maximum pixel size of uncompressed image. Useful for
## preventing decompression bomb attacks
## default: 90000000 (90 megapixel ~ 256 Mb 24 bit image)
#max_pixels=90000000
## def_quality: Default quality for lossy images, in percent
## default: 95
#def_quality=95
## min_recompress_pixels: Minimum image size (in pixels) to allow
## adjustments to image quality
## default: 0
#min_recompress_pixels=0
## allow_post: Allow receiving image data via POST
## default: false
#allow_post=false
## allow_todisk: Allow saving output images to local disk
## default: false
#allow_todisk=false
## todisk_root: Set the root where data written is written to disk when
## allow_todisk is set to true.
## default: /nonexistant
#todisk_root=/nonexistant
## allow_mkdir: Allow Dirpy to create a full directory path under
## <todisk_root> when the user requests a long path
## default: false
#allow_mkdir=fakse
## allow_overwrite: Allow Dirpy to clobber existing files
## default: false
#allow_overwrite=false
## statsd_server: The DNS/IP of your StatsD server. If set, this enables
## statsd reporting of various metrics.
## default: None
#statsd_server=None
## statsd_port: The UDP port StatsD is listening to on the server defined
## in the statsd_server variable.
## default: 8125
#statsd_port=8125
## statsd_prefix: The string that all metrics reported to your StatsD
## server will be prefixed with.
## default: dirpy
#statsd_prefix=dirpy
## redis_hosts: hostnames/ports to use as the redis caching backend.
## Hosts should be specified in hostname[:port] format, with the port
## defaulting to 11211 if not otherwise specified. Leave undefined to
## disable redis support. If redis clustering is enabled via the
## redis_cluster option, multiple hostname/ports can be defined
## here using a comma-delimited list
## default: None
#redis_hosts=localhost:1234,host1,host2:6379,host3
## redis_cluster: Determine whether or not we should use redis
## clustering support. To use clustering support, your redis cluster
## should be set up in cluster mode.
## default: false
#redis_cluster=true
## redis_prefix: The string to prefix redus cache keys with, to allow
## namespace separation amongst multiple dirpy instances using the same
## redis service.
## default: dirpy
#redis_prefix=dirpy
## debug: Cause Dirpy to emit debug log output
## default: false
#debug=false