README.md 944 Bytes
Newer Older
Jürgen Enge's avatar
Jürgen Enge committed
1
2
# Streaming Server

Jürgen Enge's avatar
Jürgen Enge committed
3
Memoriav Media Streaming Server
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
4

Jürgen Enge's avatar
Jürgen Enge committed
5
## Installation
6
7
    go get gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
    go build gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server
8
9

## Test
10
    go test gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server
Jürgen Enge's avatar
Jürgen Enge committed
11
12
13
    
## Prerequsites

Jürgen Enge's avatar
Jürgen Enge committed
14
15
16
17
18
19
MariaDB/MySQL Server with table structure of [table.sql](tables.sql) 


# Trivial Token Service

## Installation
20
21
    go get gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
    go build gitlab.switch.ch/memoriav/memobase-2020/sevices/streaming-server/cmd/tokenService
Jürgen Enge's avatar
Jürgen Enge committed
22
    
23
  
Jürgen Enge's avatar
Jürgen Enge committed
24
25
26
27
## Usage
    http://localhost:83/memostream/sig-01

    http://localhost:83/[audience]/[subject]
28
    
Jürgen Enge's avatar
Jürgen Enge committed
29
    
Jürgen Enge's avatar
Jürgen Enge committed
30
    https://media.memobase.k8s.unibas.ch/command/clearcache?token=XXX
Jürgen Enge's avatar
Jürgen Enge committed
31
32
        sub: cmd:clearcache
    
33
### Docker
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
34
35

```sh
36
37
docker run -v<path_to_config>:/app/memostream.toml <image_name>
```