2023-04-25 18:56:36 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-04-24 19:45:40 +00:00
|
|
|
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 = ''
|
2023-04-25 18:56:36 +00:00
|
|
|
import baseConfig
|
2023-04-24 19:45:40 +00:00
|
|
|
'';
|
|
|
|
};
|
2023-04-24 18:58:09 +00:00
|
|
|
}
|