Add listmonk
This commit is contained in:
parent
2a5d42cbb1
commit
d887567e3b
|
|
@ -13,8 +13,10 @@
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./authentik.nix
|
./authentik.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
|
./listmonk.nix
|
||||||
./backups.nix
|
./backups.nix
|
||||||
./site.nix
|
./site.nix
|
||||||
|
./dns.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
|
||||||
24
dns.nix
Normal file
24
dns.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, config, ... }: let
|
||||||
|
mewp-nixos = builtins.fetchGit {
|
||||||
|
url = "https://gitlab.com/mewp/mewp-nixos";
|
||||||
|
rev = "7927ac83f90d82f894877ac1ede04a54ed4e6d24";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
"${mewp-nixos}/dns.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
mewp.dns.zones."news.cebula.camp" = {
|
||||||
|
SOA = {
|
||||||
|
nameServer = "szalotka.cebula.camp";
|
||||||
|
adminEmail = "hostmaster@cebula.camp";
|
||||||
|
serial = 0;
|
||||||
|
};
|
||||||
|
NS = [ "szalotka.cebula.camp." ];
|
||||||
|
A = [ "135.181.235.222" ];
|
||||||
|
MX = [ "10 szalotka.cebula.camp." ];
|
||||||
|
TXT = [ "v=spf1 mx -all" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
16
listmonk.nix
Normal file
16
listmonk.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ pkgs, config, ... }: {
|
||||||
|
|
||||||
|
services.listmonk = {
|
||||||
|
enable = true;
|
||||||
|
database.createLocally = true;
|
||||||
|
settings.app.address = "127.0.0.1:9002";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."news.cebula.camp" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:9002";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue