-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathconfig.yml
118 lines (115 loc) · 3.18 KB
/
config.yml
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
server:
listens:
- ":8080"
- "unix:/var/run//mort.sock"
monitoring: "prometheus"
plugins:
webp: ~
compress:
gzip:
types:
- text/plain
- text/css
- application/json
- application/javascript
- text/xml
- application/xml
- application/xml+rss
- text/javascript
- text/html;
level: 4
brotli:
types:
- text/plain
- text/css
- application/json
- application/javascript
- text/xml
- application/xml
- application/xml+rss
- text/javascript
- text/html;
level: 4
headers:
- statusCodes: [200]
values:
"cache-control": "max-age=84000, public"
- statusCodes: [404, 400]
values:
"cache-control": "max-age=60, public"
- statusCodes: [500, 503]
values:
"cache-control": "max-age=10, public"
buckets:
media:
keys:
- accessKey: "acc"
secretAccessKey: "sec"
transform:
path: "\\/(?P<presetName>[a-z0-9_]+)\\/(?P<parent>.*)"
kind: "presets"
parentBucket: "media"
resultKey: "hash"
presets:
small:
quality: 75
filters:
thumbnail:
width: 150
blur:
quality: 80
filters:
thumbnail:
width: 700
blur:
sigma: 5.0
webp:
quality: 100
format: webp
filters:
thumbnail:
width: 1000
watermark:
quality: 100
filters:
thumbnail:
width: 1300
watermark:
image: "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Imgur_logo.svg/150px-Imgur_logo.svg.png"
position: "center-center"
opacity: 0.5
storages:
basic:
kind: "http"
url: "https://i.imgur.com/<item>"
headers:
"x--key": "sec"
transform:
kind: "local-meta"
rootPath: "/data/buckets"
pathPrefix: "transforms"
query:
keys:
- accessKey: "acc"
secretAccessKey: "sec"
transform:
kind: "query"
resultKey: "hash"
storages:
basic:
kind: "http"
url: "https://i.imgur.com/<item>"
headers:
"x--key": "sec"
transform:
kind: "local-meta"
rootPath: "/data/buckets/"
pathPrefix: "transforms"
local:
keys:
- accessKey: "acc"
secretAccessKey: "sec"
storages:
basic:
kind: "local-meta"
rootPath: "/data/buckets/"