From e8237e35c1b5995975e30d95beea418fc2c81f53 Mon Sep 17 00:00:00 2001 From: Tadas Nevinskas Date: Wed, 27 Oct 2021 14:06:31 +0300 Subject: [PATCH] Added subfolder config sample for the Navidrome music server --- navidrome.subfolder.conf.sample | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 navidrome.subfolder.conf.sample diff --git a/navidrome.subfolder.conf.sample b/navidrome.subfolder.conf.sample new file mode 100644 index 0000000..f7f35f3 --- /dev/null +++ b/navidrome.subfolder.conf.sample @@ -0,0 +1,28 @@ +## Version 2021/10/27 +# Set the ND_BASEURL variable to /navidrome in navidrome container. + +location /navidrome { + return 301 $scheme://$host/navidrome/; +} + +location ^~ /navidrome/ { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf + #auth_request /auth; + #error_page 401 =200 /ldaplogin; + + # enable for Authelia, also enable authelia-server.conf in the default site config + #include /config/nginx/authelia-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app navidrome; + set $upstream_port 4533; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_buffering off; +}