mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2025-09-24 23:41:30 +02:00
add school wordpress site
This commit is contained in:
parent
5fc0e91a72
commit
ac367b083b
3 changed files with 51 additions and 2 deletions
|
@ -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 = {
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue