Browse Source

The DisnixWebService is also published through Avahi

svn path=/nixos/trunk/; revision=24792
nsd-state-dir
Sander van der Burg 12 years ago
parent
commit
fcf53be5bd
  1. 1
      modules/services/misc/disnix.nix

1
modules/services/misc/disnix.nix

@ -95,6 +95,7 @@ in
${pkgs.avahi}/bin/avahi-publish-service disnix-$(${pkgs.nettools}/bin/hostname) _disnix._tcp 22 \
"hostname=\"$(${pkgs.nettools}/bin/hostname)\"" \
"mem=$(grep 'MemTotal:' /proc/meminfo | sed -e 's/kB//' -e 's/MemTotal://' -e 's/ //g')" \
${optionalString (cfg.useWebServiceInterface) ''"targetEPR=\"http://(${pkgs.nettools}/bin/hostname):8080/DisnixWebService/services/DisnixWebService\""''} \
${optionalString (config.services.httpd.enable) ''"documentRoot=\"${config.services.httpd.documentRoot}\""''} \
${optionalString (config.services.mysql.enable) ''"mysqlPort=3306"''} \
${optionalString (config.services.tomcat.enable) ''"tomcatPort=8080"''} \

Loading…
Cancel
Save