Redirect to cdn

This commit is contained in:
Ajay Ramachandran 2021-04-23 04:59:36 +02:00
parent a7605d5699
commit 0a66dcc0d6

View file

@ -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/;
}