nginx: render directory listings for uninsane.org/share
This commit is contained in:
@@ -67,7 +67,13 @@ in
|
|||||||
|
|
||||||
# uninsane.org/share/foo => /var/lib/uninsane/root/share/foo.
|
# uninsane.org/share/foo => /var/lib/uninsane/root/share/foo.
|
||||||
# yes, nginx does not strip the prefix when evaluating against the root.
|
# yes, nginx does not strip the prefix when evaluating against the root.
|
||||||
locations."/share".root = "/var/lib/uninsane/root";
|
locations."/share" = {
|
||||||
|
root = "/var/lib/uninsane/root";
|
||||||
|
extraConfig = ''
|
||||||
|
# autoindex => render directory listings
|
||||||
|
autoindex on;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# allow matrix users to discover that @user:uninsane.org is reachable via matrix.uninsane.org
|
# allow matrix users to discover that @user:uninsane.org is reachable via matrix.uninsane.org
|
||||||
locations."= /.well-known/matrix/server".extraConfig =
|
locations."= /.well-known/matrix/server".extraConfig =
|
||||||
|
Reference in New Issue
Block a user