-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
86 lines (70 loc) · 2.09 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
# post size in MiB
maxuploadsize: 25
idlength: 20
# directory to store uploaded files
storepath: 'files'
# listen address/port
listenaddr: ':8080'
tls:
use: false
key: '/etc/ssl/private/ssl-cert-snakeoil.key'
cert: '/etc/ssl/certs/ssl-cert-snakeoil.pem'
database:
# see https://godoc.org/github.com/jinzhu/gorm#Open
driver: 'sqlite3'
args: 'gdprshare.db'
mail:
smtphost: 'localhost'
smtpport: 25
smtpuser: ''
smtppass: ''
from: 'root@localhost'
subject: 'File has been accessed: %s'
subjectreceipt: 'File download confirmed: %s'
# available variables:
# .FileID
# .Addr
# .UserAgent
# .SrcTLSVersion
# .SrcTLSCipherSuite
# .DstTLSVersion
# .DstTLSCipherSuite
# .Location.Continent
# .Location.Country
# .Location.Subdivision1
# .Location.Subdivision2
# .Location.City
# .Location.IsEU
# .DeniedMsg
#
# Example:
#
# body: |
# File ID: {{.FileID}}
# IP Address: {{.Addr}}
# User Agent: {{.UserAgent}}
# Encryption Sender: {{.SrcTLSVersion}}/{{.SrcTLSCipherSuite}}
# Encryption Receiver: {{.DstTLSVersion}}/{{.DstTLSCipherSuite}}
# {{if .Location -}}
# Continent: {{.Location.Continent}}
# Country: {{.Location.Country}}
# {{- if .Location.Subdivision1 }}
# Subdivision1: {{.Location.Subdivision1}}
# {{- end }}
# {{- if .Location.Subdivision2 }}
# Subdivision2: {{.Location.Subdivision2}}
# {{- end }}
# City: {{.Location.City}}
# {{- end }}
# {{.DeniedMsg}}
body: "File download with id {{.FileID}} has been attempted. {{.DeniedMsg}}"
deniedmsg: 'Download was denied.'
# headers in case app is behind a reverse proxy
header:
tlsversion: 'X-TLS-Version'
tlsciphersuite: 'X-TLS-CipherSuite'
# saves receiver IP addr and user agent in database
saveclientinfo: false
# MaxMind GeoLite2 City database path (mmdb file)
geoippath: ''
# for config via env vars see https://github.com/jinzhu/configor#advanced-usage