javaland and increase max body size
This commit is contained in:
@@ -40,7 +40,10 @@ in
|
|||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
additionalModules = [ pkgs.nginxModules.moreheaders ];
|
additionalModules = [
|
||||||
|
pkgs.nginxModules.moreheaders
|
||||||
|
pkgs.nginxModules.fancyindex
|
||||||
|
];
|
||||||
|
|
||||||
# Use recommended settings
|
# Use recommended settings
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
@@ -140,9 +143,18 @@ in
|
|||||||
"/misc-files/" = {
|
"/misc-files/" = {
|
||||||
alias = "/var/www/misc-files/";
|
alias = "/var/www/misc-files/";
|
||||||
};
|
};
|
||||||
|
"/javaland/" = {
|
||||||
|
alias = "/var/www/javaland/";
|
||||||
|
extraConfig = ''
|
||||||
|
fancyindex on;
|
||||||
|
fancyindex_hide_parent_dir on;
|
||||||
|
fancyindex_exact_size off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
"/comms2/api" = {
|
"/comms2/api" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
client_max_body_size 20000M;
|
||||||
rewrite /comms2/api/(.*) /$1 break;
|
rewrite /comms2/api/(.*) /$1 break;
|
||||||
'';
|
'';
|
||||||
proxyPass = "http://localhost:3200/";
|
proxyPass = "http://localhost:3200/";
|
||||||
|
|||||||
Reference in New Issue
Block a user