memostream.toml-template 3.16 KB
Newer Older
Juergen Enge's avatar
Juergen Enge committed
1
2
3
4
5
6
logfile = "" # log file location
loglevel = "DEBUG" # CRITICAL|ERROR|WARNING|NOTICE|INFO|DEBUG
accesslog = "" # http access log file
addr = "localhost:88"
certpem = "" # tls client certificate file in PEM format
keypem = "" # tls client key file in PEM format
Juergen Enge's avatar
Juergen Enge committed
7
staticdir = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/static/"
Juergen Enge's avatar
Juergen Enge committed
8
9
10
11
staticprefix = "/static/"
urlprefix = "/memo/" # prefix for accessing signature based content
# http://localhost:81/command/clearcache?auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjbWQ6Y2xlYXJjYWNoZSIsImV4cCI6MTgxNjIzOTAyMn0.M_Y6R4yMAFEyo534-SXAffPwdHv929WcuSgQUcjiz10
cmdprefix = "/command/"
Juergen Enge's avatar
Juergen Enge committed
12
jwtkey = "swordfish"
Juergen Enge's avatar
Juergen Enge committed
13
14
jwtalg = ["HS256", "HS384", "HS512"] # "hs256" "hs384" "hs512" "es256" "es384" "es512" "ps256" "ps384" "ps512"
resolverCacheSize = 1000
Juergen Enge's avatar
Juergen Enge committed
15
errorTemplate = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/error.gohtml" # error message for memoHandler
Juergen Enge's avatar
Juergen Enge committed
16
17
baseurl = "http://localhost:88"

Juergen Enge's avatar
Juergen Enge committed
18
19
20
21
22
23
24
25
26
[viewer]
    image = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/iiif-image.gohtml"
    video = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/video.gohtml"
    audio = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/audio.gohtml"
    srfaudio = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/player--srg.gohtml"
    srfvideo = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/player--srg.gohtml"
    vimeo = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/video--vimeo.gohtml"
    youtube = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/video--youtube.gohtml"

Juergen Enge's avatar
Juergen Enge committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[[filemap]]
alias = "c"
folder = "C:/"

[[filemap]]
alias = "blah"
folder = "C:/temp"

[[filemap]]
alias = "demo"
folder = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/static"

[iiif]
    prefix = "/iiif/"
    base = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/static/"
    url = "http://localhost:8182/iiif/2/"
    jwtsubprefix = "iiif:"
Juergen Enge's avatar
Juergen Enge committed
44
    viewertemplate = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/openseadragon.gohtml"
Juergen Enge's avatar
Juergen Enge committed
45
46
47
48

[resolverDBMySQL]
    #if dsn is empty, the static resolver will be used
    #[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]
Juergen Enge's avatar
Juergen Enge committed
49
50
    dsn = "test:swordfish@tcp(localhost:3306)/test"
    #dsn = "urlchecker:swordfish@tcp(localhost:4306)/medienserver"
Juergen Enge's avatar
Juergen Enge committed
51
52
53
54
    # should be smaller than server connection timeout to allow controlled reconnect
    connMaxTimeout = "4h"
    # query has to return the fields uri, access and protocol. One parameter
    #query = "SELECT uri, access, proto AS protocol, `status` FROM mediaserver.entities WHERE sig = ?"
Juergen Enge's avatar
Juergen Enge committed
55
    query = "SELECT `uri`, `access`, `proto` AS protocol, `status`, `type`, `mimetype`, `width`, `height`, `duration` FROM entities_metadata WHERE sig = ?"
Juergen Enge's avatar
Juergen Enge committed
56
    schema = "test"