Skip to content

Commit de529a0

Browse files
authored
Merge pull request #398 from alpacathunder1/lychee-subfolder
Added Lychee subfolder
2 parents 4108c25 + cf5fb8d commit de529a0

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

lychee.subfolder.conf.sample

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Version 2021/10/29
2+
# lychee does not require a base url setting
3+
4+
location /lychee {
5+
return 301 $scheme://$host/lychee/;
6+
}
7+
8+
location /lychee/ {
9+
# enable the next two lines for http auth
10+
#auth_basic "Restricted";
11+
#auth_basic_user_file /config/nginx/.htpasswd;
12+
13+
# enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
14+
#auth_request /auth;
15+
#error_page 401 =200 /ldaplogin;
16+
17+
# enable for Authelia, also enable authelia-server.conf in the default site config
18+
#include /config/nginx/authelia-location.conf;
19+
20+
include /config/nginx/proxy.conf;
21+
include /config/nginx/resolver.conf;
22+
set $upstream_app lychee;
23+
set $upstream_port 80;
24+
set $upstream_proto http;
25+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
26+
27+
rewrite /lychee(.*) $1 break;
28+
}

0 commit comments

Comments
 (0)