mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Redirect to cdn
This commit is contained in:
@@ -105,11 +105,13 @@ http {
|
||||
proxy_pass http://backend_GET;
|
||||
}
|
||||
|
||||
location /database/ {
|
||||
location /download/ {
|
||||
#alias /home/sbadmin/sponsor/docker/database-export/;
|
||||
return 307 https://cdnsponsor.ajay.app$request_uri;
|
||||
}
|
||||
location /database {
|
||||
proxy_pass http://backend_db;
|
||||
#return 200 "Disabled for load reasons";
|
||||
}
|
||||
|
||||
location = /database.db {
|
||||
@@ -171,7 +173,7 @@ http {
|
||||
|
||||
listen 443 default_server ssl http2; # managed by Certbot
|
||||
#listen 443 http3 reuseport;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
#ssl_protocols TLSv1.2 TLSv1.3;
|
||||
#listen 80;
|
||||
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0001/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0001/privkey.pem; # managed by Certbot
|
||||
@@ -191,7 +193,11 @@ http {
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
||||
location /database/ {
|
||||
#location /database/ {
|
||||
# alias /home/sbadmin/sponsor/docker/database-export/;
|
||||
#}
|
||||
|
||||
location /download/ {
|
||||
alias /home/sbadmin/sponsor/docker/database-export/;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user