We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8868fa3 commit cff3a3fCopy full SHA for cff3a3f
calibre-web.subfolder.conf.sample
@@ -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