diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 8ab8611..0c8b2b7 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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