ftp: enable fancy index
This commit is contained in:
parent
7a902d6b8d
commit
897410f8df
|
@ -3,12 +3,14 @@ let
|
||||||
domain = "ftp.ifsr.de";
|
domain = "ftp.ifsr.de";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
services.nginx.additionalModules = [pkgs.nginxModules.fancyindex];
|
||||||
services.nginx.virtualHosts."${domain}" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = "/srv/ftp";
|
root = "/srv/ftp";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autoindex on;
|
fancyindex on;
|
||||||
|
fancyindex_exact_size off;
|
||||||
'';
|
'';
|
||||||
locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = ''
|
locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = ''
|
||||||
allow 141.30.0.0/16;
|
allow 141.30.0.0/16;
|
||||||
|
|
Loading…
Reference in a new issue