diff --git a/install/config.example.yml b/install/config.example.yml index 74fc8f2..4ea6987 100644 --- a/install/config.example.yml +++ b/install/config.example.yml @@ -69,4 +69,4 @@ twitch_mirror: enabled: false # https://stream.twitch.tv/ingests/ # do not include {stream_key} - ingest: 'rtmp://live-ord02.twitch.tv/app/ \ No newline at end of file + ingest: 'rtmp://live-ord02.twitch.tv/app/' \ No newline at end of file diff --git a/install/satyr.nginx b/install/satyr.nginx index fb3dc2f..b23460d 100644 --- a/install/satyr.nginx +++ b/install/satyr.nginx @@ -18,6 +18,10 @@ server { } location ~* \.(mpd|m4s|mp4)$ { + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; + add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; # nginx can serve static files faster than node # this should improve performance root /opt/satyr/site/; diff --git a/src/migrate.ts b/src/migrate.ts index 06284c4..0e3cf14 100644 --- a/src/migrate.ts +++ b/src/migrate.ts @@ -4,6 +4,6 @@ import { config } from "./config"; async function run() { await initDB(); - await clean(false); + await clean(); } -run().then(() => {process.exit()}); \ No newline at end of file +run().then(() => {process.exit()}); diff --git a/templates/base.njk b/templates/base.njk index aa150ed..48dd7a1 100644 --- a/templates/base.njk +++ b/templates/base.njk @@ -52,8 +52,8 @@
Satyr
- About
- v{{ version }} + About
+ v{{ version }}