File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Version 2023/03/27
2
+ # Make sure you have set base url via Kavita's web gui as /kavita/ and restarted the Kavita.
3
+
4
+ location /kavita {
5
+ return 301 $scheme://$host/kavita/;
6
+ }
7
+
8
+ location ^~ /kavita/ {
9
+ # enable the next two lines for http auth
10
+ #auth_basic "Restricted";
11
+ #auth_basic_user_file /config/nginx/.htpasswd;
12
+
13
+ # enable for ldap auth (requires ldap-server.conf in the server block)
14
+ #include /config/nginx/ldap-location.conf;
15
+
16
+ # enable for Authelia (requires authelia-server.conf in the server block)
17
+ #include /config/nginx/authelia-location.conf;
18
+
19
+ include /config/nginx/proxy.conf;
20
+ include /config/nginx/resolver.conf;
21
+ set $upstream_app kavita;
22
+ set $upstream_port 5000 ;
23
+ set $upstream_proto http;
24
+ proxy_pass $upstream_proto://$upstream_app:$upstream_port;
25
+
26
+ }
27
+
28
+ location ^~ /kavita/api {
29
+ include /config/nginx/proxy.conf;
30
+ include /config/nginx/resolver.conf;
31
+ set $upstream_app kavita;
32
+ set $upstream_port 5000;
33
+ set $upstream_proto http;
34
+ proxy_pass $upstream_proto://$upstream_app:$upstream_port;
35
+ }
You can’t perform that action at this time.
0 commit comments