infrastructure/machines/web01/castopod.nix

39 lines
986 B
Nix
Raw Normal View History

2023-10-27 14:16:48 +02:00
{ config, pkgs, ...}:
let
host = "podcasts.dgnum.eu";
in
{
2023-12-06 16:55:51 +01:00
imports = [
./castopod-head-proxy.nix
];
2023-10-27 14:16:48 +02:00
services.castopod = {
enable = true;
localDomain = host;
environmentFile = config.age.secrets.castopod-environment_file.path;
2023-12-06 16:55:51 +01:00
maxUploadSize = 512;
2023-10-27 14:16:48 +02:00
settings = {
"email.fromEmail"="noreply@infra.dgnum.eu";
2023-10-27 14:16:48 +02:00
"email.SMTPHost"="kurisu.lahfa.xyz";
"email.SMTPUser"="web-services@infra.dgnum.eu";
"email.SMTPPort"="587";
2023-10-27 14:16:48 +02:00
"media.fileManager"="s3";
"media.s3.endpoint"="https://s3.dgnum.eu/";
"media.s3.region"="garage";
"media.s3.bucket"="castopod-dgnum";
2023-10-27 14:16:48 +02:00
"media.s3.pathStyleEndpoint"=true;
"restapi.enabled"=true;
"restapi.basicAuthUsername"="castopod";
"restapi.basicAuth"=true;
};
database.createLocally = true;
configureNginx = true;
};
services.mysql.package = pkgs.mariadb;
services.nginx.virtualHosts.${host} = {
forceSSL = true;
enableACME = true;
};
}