WordPress: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny mNo edit summary |
||
Line 94: | Line 94: | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
settings = | settings = { | ||
WP_DEFAULT_THEME = "responsive"; | WP_DEFAULT_THEME = "responsive"; | ||
}; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
Line 127: | Line 127: | ||
require_once ABSPATH . 'wp-admin/includes/plugin.php'; | require_once ABSPATH . 'wp-admin/includes/plugin.php'; | ||
activate_plugin( 'wordpress-plugin-static-mail-sender-configurator-${pkgs.wordpressPackages.plugins.static-mail-sender-configurator.version}/static-mail-sender-configurator.php' ); | activate_plugin( 'wordpress-plugin-static-mail-sender-configurator-${pkgs.wordpressPackages.plugins.static-mail-sender-configurator.version}/static-mail-sender-configurator.php' ); | ||
''; | ''; | ||
settings = { | |||
# Change sender mail address | |||
WP_MAIL_FROM = "noreply@localhost"; | |||
}; | |||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
Line 157: | Line 158: | ||
services.wordpress.sites."localhost" = { | services.wordpress.sites."localhost" = { | ||
settings = { | settings = { | ||
# Needed to run behind reverse proxy | |||
FORCE_SSL_ADMIN = true; | FORCE_SSL_ADMIN = true; | ||
}; | }; |