WordPress: Difference between revisions

imported>Mmilata
Remove pre-19.09 configuration using services.httpd.extraSubservices
imported>Farzin-az
No edit summary
Line 34: Line 34:
in
in
{
{
   services.wordpress."webservice5" = {
# Note the .sites - the upstream module says this is the new syntax,
     database = {
# the old is only supported because of a hack at the very top of the module
      host = "127.0.0.1";
   services.wordpress.sites."webservice5" = {
      name = "wordpress";
     database.createLocally = true; # name is set to `wordpress` by default
      passwordFile = pkgs.writeText "wordpress-insecure-dbpass" "wordpress";
      createLocally = true;
    };
     themes = [ responsiveTheme ];
     themes = [ responsiveTheme ];
     plugins = [ akismetPlugin ];
     plugins = [ akismetPlugin ];