File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/
4+
5+ location /kavita {
6+ return 301 $scheme://$host/kavita/;
7+ }
8+
9+ location ^~ /kavita/ {
10+ # enable the next two lines for http auth
11+ #auth_basic "Restricted";
12+ #auth_basic_user_file /config/nginx/.htpasswd;
13+
14+ # enable for ldap auth (requires ldap-server.conf in the server block)
15+ #include /config/nginx/ldap-location.conf;
16+
17+ # enable for Authelia (requires authelia-server.conf in the server block)
18+ #include /config/nginx/authelia-location.conf;
19+
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;
29+
30+ }
31+
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+ }
You can’t perform that action at this time.
0 commit comments