mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 22:57:42 +03:00
Virtuoso: add parameters section to config
svn path=/nixos/trunk/; revision=27342
This commit is contained in:
parent
bd6eb4ed7a
commit
c734389e90
@ -23,6 +23,11 @@ with pkgs.lib;
|
|||||||
description = "Extra options to put into Virtuoso configuration file.";
|
description = "Extra options to put into Virtuoso configuration file.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
parameters = mkOption {
|
||||||
|
default = "";
|
||||||
|
description = "Extra options to put into [Parameters] section of Virtuoso configuration file.";
|
||||||
|
};
|
||||||
|
|
||||||
listenAddress = mkOption {
|
listenAddress = mkOption {
|
||||||
default = "1111";
|
default = "1111";
|
||||||
example = "myserver:1323";
|
example = "myserver:1323";
|
||||||
@ -82,6 +87,7 @@ with pkgs.lib;
|
|||||||
ServerPort=${cfg.listenAddress}
|
ServerPort=${cfg.listenAddress}
|
||||||
RunAs=${virtuosoUser}
|
RunAs=${virtuosoUser}
|
||||||
${optionalString (cfg.dirsAllowed != null) "DirsAllowed=${cfg.dirsAllowed}"}
|
${optionalString (cfg.dirsAllowed != null) "DirsAllowed=${cfg.dirsAllowed}"}
|
||||||
|
${cfg.parameters}
|
||||||
|
|
||||||
[HTTPServer]
|
[HTTPServer]
|
||||||
${optionalString (cfg.httpListenAddress != null) "ServerPort=${cfg.httpListenAddress}"}
|
${optionalString (cfg.httpListenAddress != null) "ServerPort=${cfg.httpListenAddress}"}
|
||||||
|
Loading…
Reference in New Issue
Block a user