|
1 | | -## Version 2023/03/27 |
2 | | -# Make sure you have set base url via Kavita's web gui as /kavita/ and restarted the Kavita. |
| 1 | +## Version 2023/04/13 |
| 2 | +# make sure that your kavita container is named kavita |
| 3 | +# make sure that kavita is set to work with the base url /kavita/ |
3 | 4 |
|
4 | 5 | location /kavita { |
5 | | - return 301 $scheme://$host/kavita/; |
| 6 | + return 301 $scheme://$host/kavita/; |
6 | 7 | } |
7 | 8 |
|
8 | 9 | location ^~ /kavita/ { |
9 | | - # enable the next two lines for http auth |
10 | | - #auth_basic "Restricted"; |
11 | | - #auth_basic_user_file /config/nginx/.htpasswd; |
| 10 | + # enable the next two lines for http auth |
| 11 | + #auth_basic "Restricted"; |
| 12 | + #auth_basic_user_file /config/nginx/.htpasswd; |
12 | 13 |
|
13 | | - # enable for ldap auth (requires ldap-server.conf in the server block) |
14 | | - #include /config/nginx/ldap-location.conf; |
| 14 | + # enable for ldap auth (requires ldap-server.conf in the server block) |
| 15 | + #include /config/nginx/ldap-location.conf; |
15 | 16 |
|
16 | | - # enable for Authelia (requires authelia-server.conf in the server block) |
17 | | - #include /config/nginx/authelia-location.conf; |
| 17 | + # enable for Authelia (requires authelia-server.conf in the server block) |
| 18 | + #include /config/nginx/authelia-location.conf; |
18 | 19 |
|
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; |
| 20 | + # enable for Authentik (requires authentik-server.conf in the server block) |
| 21 | + #include /config/nginx/authentik-location.conf; |
| 22 | + |
| 23 | + include /config/nginx/proxy.conf; |
| 24 | + include /config/nginx/resolver.conf; |
| 25 | + set $upstream_app kavita; |
| 26 | + set $upstream_port 5000; |
| 27 | + set $upstream_proto http; |
| 28 | + proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
25 | 29 |
|
26 | 30 | } |
27 | 31 |
|
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 | | - } |
| 32 | +location ^~ /kavita/api { |
| 33 | + include /config/nginx/proxy.conf; |
| 34 | + include /config/nginx/resolver.conf; |
| 35 | + set $upstream_app kavita; |
| 36 | + set $upstream_port 5000; |
| 37 | + set $upstream_proto http; |
| 38 | + proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
| 39 | + |
| 40 | +} |
0 commit comments