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