Loading nixos/modules/services/web-servers/nginx/default.nix +14 −0 Original line number Diff line number Diff line Loading @@ -161,6 +161,8 @@ let configFile = (if cfg.validateConfigFile then pkgs.writers.writeNginxConfig else pkgs.writeText) "nginx.conf" '' ${cfg.prependConfig} pid /run/nginx/nginx.pid; error_log ${cfg.logError}; daemon off; Loading Loading @@ -831,6 +833,18 @@ in ''; }; prependConfig = mkOption { type = types.lines; default = ""; description = '' Configuration lines prepended to the generated Nginx configuration file. Can for example be used to load modules. {option}`prependConfig` can be specified more than once and its value will be concatenated (contrary to {option}`config` which can be set only once). ''; }; appendConfig = mkOption { type = types.lines; default = ""; Loading Loading
nixos/modules/services/web-servers/nginx/default.nix +14 −0 Original line number Diff line number Diff line Loading @@ -161,6 +161,8 @@ let configFile = (if cfg.validateConfigFile then pkgs.writers.writeNginxConfig else pkgs.writeText) "nginx.conf" '' ${cfg.prependConfig} pid /run/nginx/nginx.pid; error_log ${cfg.logError}; daemon off; Loading Loading @@ -831,6 +833,18 @@ in ''; }; prependConfig = mkOption { type = types.lines; default = ""; description = '' Configuration lines prepended to the generated Nginx configuration file. Can for example be used to load modules. {option}`prependConfig` can be specified more than once and its value will be concatenated (contrary to {option}`config` which can be set only once). ''; }; appendConfig = mkOption { type = types.lines; default = ""; Loading