nixos-config/config/services/wordpress.nix

28 lines
570 B
Nix
Raw Normal View History

2023-04-24 19:45:40 +00:00
{lib, pkgs, config, ...}: {
imports = [../../modules/wordpress.nix];
2023-04-24 18:58:09 +00:00
services.mysql = {
enable = true;
package = pkgs.mariadb;
};
services.wordpress.webserver = "caddy";
services.wordpress.sites."lotte.chir.rs" = {
settings = {
# Needed to run behind reverse proxy
FORCE_SSL_ADMIN = true;
};
extraConfig = ''
$_SERVER['HTTPS']='on';
'';
};
2023-04-24 19:45:40 +00:00
services.caddy.virtualHosts."lotte.chir.rs" = {
useACMEHost = "chir.rs";
logFormat = lib.mkForce "";
extraConfig = ''
import baseConfig
'';
};
2023-04-24 18:58:09 +00:00
}