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 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+ }
You can’t perform that action at this time.
0 commit comments