summaryrefslogtreecommitdiff
path: root/config/config-s3.sample.json
blob: 5b067a52e5685ff8d21090d348ff775acb087f9a (plain)
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
{
    "MaxProcessThreads": 4,
    "MaxPreProcessThreads": 12,
    "LogLevel": "info",
    "Input": {
        "Storage": {
            "Type": "s3",
            "Config": {
                "BucketName": "my-photos",
                "Region": "",
                "Prefix": "full/",
                "Endpoint": "https://minio.local",
                "UsePathStyle": true,
                "AccessKeyID": "${AWS_ACCESS_KEY_ID}",
                "SecretAccessKey": "${AWS_SECRET_ACCESS_KEY}"
            }
        },
        "KnownExtensions": [
            "jpg",
            "jpeg",
            "png"
        ],
        "CacheProcessed": true,
        "CacheProcessedCsvPath": "cache.csv"
    },
    "Converters": [
        {
            "Type": "webp",
            "Config": {
                "Quality": 80,
                "Size": {
                    "MaxWidth": 320,
                    "MaxHeight": 0
                }
            },
            "Output": {
                "RewriteOn": "UnequalHashInCache",
                "Storage": {
                    "Type": "s3",
                    "Config": {
                        "BucketName": "my-photos",
                        "Region": "",
                        "Prefix": "webp-320p/",
                        "Endpoint": "https://minio.local",
                        "UsePathStyle": true,
                        "AccessKeyID": "${AWS_ACCESS_KEY_ID}",
                        "SecretAccessKey": "${AWS_SECRET_ACCESS_KEY}"
                    }
                }
            }
        }
    ]
}