-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.go
38 lines (29 loc) · 945 Bytes
/
constants.go
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
package main
import (
_ "embed"
"github.com/chronos-tachyon/roxy/internal/constants"
)
const (
xattrMimeType = "user.mimetype"
xattrMimeLang = "user.mimelang"
xattrMimeEnc = "user.mimeenc"
xattrMd5sum = "user.md5sum"
xattrSha1sum = "user.sha1sum"
xattrSha256sum = "user.sha256sum"
xattrEtag = "user.etag"
defaultContentType = constants.ContentTypeTextHTML
defaultContentLang = constants.ContentLangEN
defaultContentEnc = ""
defaultConfigFile = "/etc/opt/roxy/config.json"
defaultMimeFile = "/etc/opt/roxy/mime.json"
defaultStorageEngine = "fs"
defaultStoragePath = "/var/opt/roxy/lib/acme"
defaultMaxCacheSize = 64 << 10 // 64 KiB
defaultMaxComputeDigestSize = 4 << 20 // 4 MiB
)
//go:embed templates/index.html
var defaultIndexPageTemplate string
//go:embed templates/redir.html
var defaultRedirPageTemplate string
//go:embed templates/error.html
var defaultErrorPageTemplate string