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:
parent
ef7aaacfc8
commit
6c775d5e91
@ -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}" = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user