Skip to content

Commit cff3a3f

Browse files
aptalcathelamer
authored andcommitted
Create calibre-web.subfolder.conf.sample
1 parent 8868fa3 commit cff3a3f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

calibre-web.subfolder.conf.sample

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# calibre-web does not require a base url setting
2+
3+
location /calibre-web {
4+
return 301 $scheme://$host/calibre-web/;
5+
}
6+
location ^~ /calibre-web/ {
7+
# enable the next two lines for http auth
8+
#auth_basic "Restricted";
9+
#auth_basic_user_file /config/nginx/.htpasswd;
10+
11+
# enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
12+
#auth_request /auth;
13+
#error_page 401 =200 /login;
14+
15+
resolver 127.0.0.11 valid=30s;
16+
set $upstream_calibre_web calibre-web;
17+
proxy_pass http://$upstream_calibre_web:8083;
18+
proxy_set_header Host $http_host;
19+
proxy_set_header X-Scheme $scheme;
20+
proxy_set_header X-Script-Name /calibre-web;
21+
}

0 commit comments

Comments
 (0)