add wordpress

This commit is contained in:
Charlotte 🦝 Delenk 2023-04-24 19:58:09 +01:00
parent 7ce806e7b1
commit 7c19de9e80
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 22 additions and 1 deletions

View file

@ -32,6 +32,7 @@
./services/shitalloverme.nix
./services/chir.rs
./services/atticd.nix
./services/wordpress.nix
];
boot.initrd.availableKernelModules = ["ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod"];

View file

@ -0,0 +1,19 @@
{pkgs, ...}: {
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';
'';
};
services.caddy.virtualHosts."lotte.chir.rs".useACMEHost = "chir.rs";
}

View file

@ -144,7 +144,7 @@ with dns.lib.combinators; let
SOA = {
nameServer = "ns1.chir.rs.";
adminEmail = "lotte@chir.rs";
serial = 29;
serial = 30;
};
NS = [
"ns1.chir.rs."
@ -246,6 +246,7 @@ with dns.lib.combinators; let
attic-nocdn = createFullZone {};
attic.CNAME = ["attic-chir-rs.b-cdn.net."];
cloud = createZone oracleBase;
lotte = createZone {};
int =
delegateTo [