mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Redirect to cdn
This commit is contained in:
parent
a7605d5699
commit
0a66dcc0d6
1 changed files with 9 additions and 3 deletions
|
@ -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/;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue