Add Port and Proto variables

This commit is contained in:
Eric Nemchik 2020-02-17 17:05:10 -06:00
commit 0c24b78a0b
136 changed files with 856 additions and 260 deletions

View file

@ -1,4 +1,4 @@
# calibre does not require a base url setting
# calibre does not require a base url setting
location /calibre {
return 301 $scheme://$host/calibre/;
@ -14,6 +14,9 @@ location ^~ /calibre/ {
resolver 127.0.0.11 valid=30s;
set $upstream_app calibre;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /calibre(.*) $1 break;
proxy_pass http://$upstream_app:8080;
}