From 58a55c43e4c36e2e48f09ba517a1ade6785ebdce Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 24 Sep 2023 23:11:54 +0200 Subject: [PATCH] feat(peertube): Update config Add smtp configuration and other miscelleanous settings --- machines/storage01/peertube.nix | 18 ++++++++++++- .../secrets/peertube-smtp_password_file | 25 +++++++++++++++++++ machines/storage01/secrets/secrets.nix | 1 + 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 machines/storage01/secrets/peertube-smtp_password_file diff --git a/machines/storage01/peertube.nix b/machines/storage01/peertube.nix index 68c028a..49c200b 100644 --- a/machines/storage01/peertube.nix +++ b/machines/storage01/peertube.nix @@ -26,6 +26,22 @@ in { prefix = "streaming-playlists"; }; }; + + smtp = { + transport = "smtp"; + hostname = "kurisu.lahfa.xyz"; + port = 465; + username = "web-services@infra.dgnum.eu"; + tls = true; + disable_starttls = true; + from_address = "videos@infra.dgnum.eu"; + }; + + email.subject.prefix = "[videos.dgnum]"; + + webadmin.configuration.edition.allowed = false; + + user.video_quota = "10GB"; }; localDomain = host; @@ -36,7 +52,7 @@ in { redis.createLocally = true; database.createLocally = true; - # smtp.passwordFile = ""; + smtp.passwordFile = config.age.secrets."peertube-smtp_password_file".path; serviceEnvironmentFile = config.age.secrets."peertube-service_environment_file".path; secrets.secretsFile = config.age.secrets."peertube-secrets_file".path; diff --git a/machines/storage01/secrets/peertube-smtp_password_file b/machines/storage01/secrets/peertube-smtp_password_file new file mode 100644 index 0000000..b61f140 --- /dev/null +++ b/machines/storage01/secrets/peertube-smtp_password_file @@ -0,0 +1,25 @@ +age-encryption.org/v1 +-> ssh-ed25519 rHotTw c/IJbIePUMbHxGalrFL5mH20Tc/zzMn6hISFi6X0dSU +YG3ythuAGuewdK/hIWJvDE+GuRfYMFvz4KzMAIEk8jE +-> ssh-ed25519 jIXfPA eSj6AZkrZZv4VNGkuVWuEqBMAYJGuOOWTCIWceWIRjw +sWICwGnEl4QSUlz4jtWXBpI7V2ozgqN++SusWumIj6s +-> ssh-ed25519 QlRB9Q 9GdfkKb20ODcHQMvMEQQzPRXbfuy7U7o3yb6SeMLoxo +pQI57vOU13FpnnnfQyLpA2cP4Dsc0Bes+9zJmFN8Ze4 +-> ssh-ed25519 r+nK/Q OM9b/4vrC8YNzkRTJEfXEKximYOxq2i9Yfn7A4lZJEY +LCN2bM9Qizy4wwz2VPormD0Hn2hCtmAUU+bM56qeVcI +-> ssh-rsa krWCLQ +qTb4xfzND+rfsp0AjiuEmLe0zHEvnE7j8U59g6/9NBL8/Qlnz1n3Ym0HyqK3vESH +X9eN3pkmxuYG3lJkSR875DHejCmtVqJRm6u8qx4Xi+JD/E++p0Fq0U0qtBFfJJ/I +zWrS5aR5GYqX2voXZ/W9YWhMHFwD8Ca/OuPYU51MSz0AuvR3l65FURGAW4kQ6SiP +Mgtk3nzG3G0lhSkQXYTeNqDM7AxATnl5G8QuGVi+72gSPlEnatMKNOt2LFxX26vU +q9TTckoMvFtobTdXOVm5UeS1rxtGwN3vPBJ38wzLXNhFWqT66rgExozp2ex77WYF +t6FRk1y86rjf+Ef+EswBNQ +-> ssh-ed25519 /vwQcQ XE+SdZv9HDfz7iLUiLc7g52SH1xrORtT57FyyyZrYFk +KM4+uPcau5J3akDRn+bqcXtZcpQ0EHrhe6s4qS8pUhU +-> ssh-ed25519 0R97PA mG9RQGh7FECTvsdwIBOm1HxHAm2DJ4IadlROdpeichw +xDl++nTk19STjG2PC+SYqEP3pwXFOnTlvRG88zIjTKs +-> K-grease [ +JfC/6Q +--- BxfHgcTrNjNNNsGfmXERXN/o5/FhzreEJv1RKtIcsWg +G* +a'+I$ߦOZ.3RU^7` ;~Ln]tKe6N \ No newline at end of file diff --git a/machines/storage01/secrets/secrets.nix b/machines/storage01/secrets/secrets.nix index 8bf7f5f..b517fc0 100644 --- a/machines/storage01/secrets/secrets.nix +++ b/machines/storage01/secrets/secrets.nix @@ -9,4 +9,5 @@ lib.setDefault { inherit publicKeys; } [ "lychee-environment_file" "peertube-secrets_file" "peertube-service_environment_file" + "peertube-smtp_password_file" ]