mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-24 22:58:44 +01:00
add school wordpress site
This commit is contained in:
parent
5fc0e91a72
commit
ac367b083b
|
@ -1,10 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./katzencafe-wiki.nix
|
||||
./phtanumb-wiki.nix
|
||||
./calckey.nix
|
||||
./penpot.nix
|
||||
./nextcloud.nix
|
||||
./wordpress-schule.nix
|
||||
];
|
||||
}
|
||||
|
|
38
modules/containers/wordpress-schule.nix
Normal file
38
modules/containers/wordpress-schule.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{...}: {
|
||||
containers."schule-wp" = {
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "10.0.4.1";
|
||||
localAddress = "10.0.4.2";
|
||||
bindMounts = {
|
||||
"/var/wp" = {
|
||||
hostPath = "/schule-wp";
|
||||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.wordpress = {
|
||||
sites."schule" = {
|
||||
virtualHost = {
|
||||
hostName = "wp.schule.katzen.cafe";
|
||||
adminAddr = "schule@schrottkatze.de";
|
||||
listen = [
|
||||
{
|
||||
ip = "10.0.4.2";
|
||||
port = 80;
|
||||
ssl = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
system.stateVersion = "23.11";
|
||||
};
|
||||
};
|
||||
deployment.keys = {
|
||||
};
|
||||
}
|
|
@ -58,6 +58,10 @@
|
|||
group = "nginx";
|
||||
keyType = "rsa4096";
|
||||
};
|
||||
"wp.schule.katzen.cafe" = {
|
||||
group = "nginx";
|
||||
keyType = "rsa4096";
|
||||
};
|
||||
# "prosody.katzen.cafe" = {
|
||||
# group = "prosody";
|
||||
# keyType = "rsa4096";
|
||||
|
@ -204,6 +208,13 @@
|
|||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
'';
|
||||
};
|
||||
"wp.schule.katzen.cafe" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://10.0.4.2";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue