lol

nginx module: Add extraConfig for locations

authored by

Franz Pletz and committed by
Robin Gloster
811f243c d5a097fd

+9
+1
nixos/modules/services/web-servers/nginx/default.nix
··· 117 117 location ${location} { 118 118 ${optionalString (config.proxyPass != null) "proxy_pass ${config.proxyPass};"} 119 119 ${optionalString (config.root != null) "root ${config.root};"} 120 + ${config.extraConfig} 120 121 } 121 122 '') locations); 122 123 in
+8
nixos/modules/services/web-servers/nginx/location-options.nix
··· 27 27 Root directory for requests. 28 28 ''; 29 29 }; 30 + 31 + extraConfig = mkOption { 32 + type = types.lines; 33 + default = ""; 34 + description = '' 35 + These lines go to the end of the location verbatim. 36 + ''; 37 + }; 30 38 }; 31 39 } 32 40