This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
default.config.yaml
82 lines (76 loc) · 2.94 KB
/
default.config.yaml
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
# The port to listen to for HTTP requests
server:
port: 9000
host: "::1"
scan:
# The script that will be given a file as its first parameter
script: './example.sh'
# If set and the script exits with an exit code listed here, the failure will not be
# cached. Useful to prevent caching of a failure due to e.g. the antivirus restarting.
#
# doNotCacheExitCodes:
# - 1
# - 2
#
# The temporary directory to use
tempDirectory: '/tmp'
# The base URL of the homeserver to download media from
baseUrl: 'https://matrix.org'
# If set to true, effectively set baseUrl to
# "https://$domain"
# where $domain is the domain part of the requested media.
#
# This should only be used when it is preferable not to download
# media through the normal route: via a single (and federated)
# homeserver.
#
# directDownload: false
# Optional. A command to execute when unlinking files from the file
# system instead of using node's fs.unlink. When executed, the first
# argument to the command will be the path of the file being
# removed.
#
# altRemovalCmd: 'rm'
# Optional. If need to use a proxy to access baseUrl
# proxy: "http://10.228.1.1:80"
# Optional. Settings to send HTTP header in download requests from
# content scanner to homeserver
#requestHeader:
# Optional. If need to send a 'user-agent' header
# If set to 'origin', uses the user agent used by the client
# when sending the request to the content scanner
# userAgent: 'matrix-content-scanner'
#
# Optional. If need to send a 'x-forwarded-for' header
# If set to 'origin', uses the IP address of the client that
# sent the request to the content scanner
# xForward: 'x-forwarded-for'
middleware:
# Configuration for using encrypted_body in POST requests.
encryptedBody:
# The following configuration allows for the encrypted_body
# decryption key to be persisted to the file system. This means
# the public/private key pair will not change when the AV server
# is restarted.
#
# The pickle key secret used to unpickle the decryption key
pickleKey: 'some_random_secret'
# The file that the decryption key will be written to if the file
# does not exist. If it does exist, the file will be read from and
# the unpickled key will be used to decrypt encrypted_body
# requests.
picklePath: 'av_pickled_decryption.key'
# Optional. A list of accepted MIME types.
#
# WARNING! This cannot be relied on for security:
#
# it is possible to specially craft a file that looks like a different kind of file.
# As one example, it is possible for a file to be both a PNG file and a
# ZIP file yet will be detected as `image/png`.
# Further, it should be generally assumed that most file formats have a way to
# encode and attach extraneous data.
#
#acceptedMimeType:
# - 'image/jpeg'
# - 'image/jpg'
# - 'image/png'