mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 21:18:47 +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;
|
||||
}
|
||||
|
||||
location /viewer {
|
||||
return 301 https://sb.ltn.fi;
|
||||
}
|
||||
|
||||
location /invidious/ {
|
||||
proxy_pass https://invidious.fdn.fr/;
|
||||
}
|
||||
@@ -86,7 +90,7 @@ http {
|
||||
proxy_pass http://backend_GET;
|
||||
}
|
||||
|
||||
location =/database.db {
|
||||
location = /database.db {
|
||||
alias /home/sbadmin/sponsor/databases/sponsorTimes.db;
|
||||
}
|
||||
|
||||
@@ -141,6 +145,10 @@ http {
|
||||
|
||||
|
||||
server {
|
||||
|
||||
access_log off;
|
||||
error_log /dev/null;
|
||||
|
||||
if ($host = api.sponsor.ajay.app) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
Reference in New Issue
Block a user