Commit 74e02a78 authored by Juergen Enge's avatar Juergen Enge
Browse files

toml template adapted

parent 997e57e7
Pipeline #16113 passed with stages
in 3 minutes and 41 seconds
......@@ -4,7 +4,7 @@ accesslog = "" # http access log file
addr = "localhost:88"
certpem = "" # tls client certificate file in PEM format
keypem = "" # tls client key file in PEM format
staticdir = "C:/daten/go/dev/memobase/streaming-server/web/static/"
staticdir = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/static/"
staticprefix = "/static/"
urlprefix = "/memo/" # prefix for accessing signature based content
# http://localhost:81/command/clearcache?auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjbWQ6Y2xlYXJjYWNoZSIsImV4cCI6MTgxNjIzOTAyMn0.M_Y6R4yMAFEyo534-SXAffPwdHv929WcuSgQUcjiz10
......@@ -12,11 +12,18 @@ cmdprefix = "/command/"
jwtkey = "swordfish"
jwtalg = ["HS256", "HS384", "HS512"] # "hs256" "hs384" "hs512" "es256" "es384" "es512" "ps256" "ps384" "ps512"
resolverCacheSize = 1000
errorTemplate = "C:/daten/go/dev/memobase/streaming-server/web/template/error.gohtml" # error message for memoHandler
videoviewertemplate = "C:/daten/go/dev/memobase/streaming-server/web/template/videojs.gohtml"
audioviewertemplate = "C:/daten/go/dev/memobase/streaming-server/web/template/audiohowler.gohtml"
errorTemplate = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/error.gohtml" # error message for memoHandler
baseurl = "http://localhost:88"
[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"
[[filemap]]
alias = "c"
folder = "C:/"
......@@ -34,54 +41,16 @@ folder = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/strea
base = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/static/"
url = "http://localhost:8182/iiif/2/"
jwtsubprefix = "iiif:"
viewertemplate = "C:/daten/go/dev/memobase/streaming-server/web/template/openseadragon.gohtml"
viewertemplate = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/web/template/openseadragon.gohtml"
[resolverDBMySQL]
#if dsn is empty, the static resolver will be used
#[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]
dsn = "test:<swordfish>@tcp(localhost:3306)/test"
#dsn = "urlchecker:<swordfish>@tcp(localhost:4306)/medienserver"
#dsn = ""
dsn = "test:swordfish@tcp(localhost:3306)/test"
#dsn = "urlchecker:swordfish@tcp(localhost:4306)/medienserver"
# 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 = ?"
query = "SELECT `uri`, `access`, `proto` AS protocol, `status`, `type`, `mimetype`, `width`, `height`, `duration` FROM test.entities_metadata WHERE sig = ?"
query = "SELECT `uri`, `access`, `proto` AS protocol, `status`, `type`, `mimetype`, `width`, `height`, `duration` FROM entities_metadata WHERE sig = ?"
schema = "test"
[signatures]
[signatures.sig-01]
type = "file"
uri = "file:///C:/daten/Persoenlich/bilder/MobilePhotos/16-09-03 13-41-58 0634.mp4"
access = "public"
# http://localhost:81/memo/sig-01
[signatures.sig-02]
type = "redirect"
uri = "https://ba14ns21403.fhnw.ch/video/open/performance/2002_B_B_Yours_Sincerly.mov.mp4"
access = "public"
# http://localhost:81/memo/sig-02
[signatures.sig-03]
type = "file"
uri = "file:///C:/daten/Persoenlich/bilder/MobilePhotos/16-09-03 13-41-58 0634.mp4"
access = "closed"
# http://localhost:81/memo/sig-03?auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzaWctMDMiLCJleHAiOjE4MTYyMzkwMjJ9.bHrv5_5-dtI9EvxeoxZTw2DWi7HKNpFZ-S8Vb_F2Ps4
[signatures.sig-04]
type = "proxy"
uri = "https://ba14ns21403.fhnw.ch/video/open/performance/2002_B_B_Yours_Sincerly.mov.mp4"
access = "public"
# http://localhost:81/memo/sig-04
[signatures.sig-05]
type = "file"
uri = "file:///C:/Users/juergen.enge/Downloads/cantaloupe-4.1.5/data/milkyway.jpg"
access = "public"
# http://localhost:81/memo/sig-05/iiif/view
[signatures.sig-06]
type = "file"
uri = "file:///C:/Users/juergen.enge/Downloads/cantaloupe-4.1.5/data/milkyway.jpg"
access = "closed"
# http://localhost:81/memo/sig-06/iiif/view?auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzaWctMDYiLCJleHAiOjE4MTYyMzkwMjJ9.jBTTT5cGKXoP7zJO1CXviAxJm2j49fxfZHH7BEi9lzI
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment