From 0900496d7096a52264883753dc4ba13523c265e1 Mon Sep 17 00:00:00 2001 From: knotteye Date: Sun, 18 Oct 2020 09:13:09 +0000 Subject: [PATCH 1/4] Fix a bug with migrate.ts calling a function incorrectly --- src/migrate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()}); From 2c073a7cdbbb81d6cd003d38a326b7a1e83fb707 Mon Sep 17 00:00:00 2001 From: knotteye Date: Sun, 18 Oct 2020 09:25:54 +0000 Subject: [PATCH 2/4] Update URLs with new repository --- templates/base.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}
From 07cba660960afc3f4407d1ad3d1866887d3264ed Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 24 Oct 2020 22:47:03 -0500 Subject: [PATCH 3/4] Fix a typo in the generated config file --- install/config.example.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From fe3ec1bd75b050e55f1f19a578761ec79f74afc9 Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 24 Oct 2020 22:52:59 -0500 Subject: [PATCH 4/4] Fix CORS issues in reccomended nginx config --- install/satyr.nginx | 4 ++++ 1 file changed, 4 insertions(+) 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/;