Skip to content

Commit e1038fd

Browse files
authored
Merge pull request #574 from YodaDaCoda/master
fix: bypass auth for kavita api endpoint
2 parents 7a4d827 + 849dadf commit e1038fd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

kavita.subdomain.conf.sample

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,15 @@ server {
4343
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4444

4545
}
46+
47+
# Needed for OPDS access while using Authelia/ldap
48+
location ~ (/kavita)?/api {
49+
include /config/nginx/proxy.conf;
50+
include /config/nginx/resolver.conf;
51+
set $upstream_app kavita;
52+
set $upstream_port 5000;
53+
set $upstream_proto http;
54+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
55+
56+
}
4657
}

0 commit comments

Comments
 (0)