1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add nginx config to wordpress

This commit is contained in:
Stefan Ellmauthaler 2024-03-12 13:53:55 +01:00
parent ef7aaacfc8
commit 6c775d5e91
Failed to extract signature

View File

@ -66,6 +66,11 @@ with lib; {
}; };
in in
mkIf cfg.enable { mkIf cfg.enable {
services.nginx.virtualHosts.${cfg.domain} = {
enableACME = true;
forceSSL = true;
};
services.wordpress = { services.wordpress = {
webserver = "nginx"; webserver = "nginx";
sites."${cfg.domain}" = { sites."${cfg.domain}" = {