mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-18 13:38:22 +03:00
Add /viewer redirect
This commit is contained in:
@@ -54,10 +54,14 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location = /news {
|
location ~ /news* {
|
||||||
return 301 https://blog.ajay.app/sponsorblock;
|
return 301 https://blog.ajay.app/sponsorblock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /viewer {
|
||||||
|
return 301 https://sb.ltn.fi;
|
||||||
|
}
|
||||||
|
|
||||||
location /invidious/ {
|
location /invidious/ {
|
||||||
proxy_pass https://invidious.fdn.fr/;
|
proxy_pass https://invidious.fdn.fr/;
|
||||||
}
|
}
|
||||||
@@ -86,7 +90,7 @@ http {
|
|||||||
proxy_pass http://backend_GET;
|
proxy_pass http://backend_GET;
|
||||||
}
|
}
|
||||||
|
|
||||||
location =/database.db {
|
location = /database.db {
|
||||||
alias /home/sbadmin/sponsor/databases/sponsorTimes.db;
|
alias /home/sbadmin/sponsor/databases/sponsorTimes.db;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,6 +145,10 @@ http {
|
|||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
||||||
|
access_log off;
|
||||||
|
error_log /dev/null;
|
||||||
|
|
||||||
if ($host = api.sponsor.ajay.app) {
|
if ($host = api.sponsor.ajay.app) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
} # managed by Certbot
|
} # managed by Certbot
|
||||||
|
|||||||
Reference in New Issue
Block a user