add wordpress
This commit is contained in:
parent
7ce806e7b1
commit
7c19de9e80
3 changed files with 22 additions and 1 deletions
|
@ -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"];
|
||||
|
|
19
config/services/wordpress.nix
Normal file
19
config/services/wordpress.nix
Normal 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";
|
||||
}
|
|
@ -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 [
|
||||
|
|
Loading…
Reference in a new issue