Compare commits

...

7 commits

Author SHA1 Message Date
Tom Hubrecht
fc5d401dae feat(matterbridge): Update settings 2023-12-08 17:54:50 +01:00
Tom Hubrecht
db474477c9 fix(garage): Fix chunked file uploads from nextcloud 2023-12-08 17:54:39 +01:00
Tom Hubrecht
1e77824251 fix(nextcloud): Fix preview generator and update settings 2023-12-08 17:54:16 +01:00
Tom Hubrecht
4f5086a69e chore(npins): Update 2023-12-08 16:55:36 +01:00
Tom Hubrecht
fa78327922 feat(web01): Install matterbridge 2023-12-08 14:53:17 +01:00
Tom Hubrecht
f9a194b636 fix(garage): Increase the max body size 2023-12-08 14:53:17 +01:00
Tom Hubrecht
04ce6d37f6 feat(peertube): Allow editing config from the web interface 2023-12-08 14:53:17 +01:00
9 changed files with 31 additions and 12 deletions

View file

@ -78,21 +78,22 @@ in {
}; };
systemd.services.nextcloud-preview = { systemd.services.nextcloud-preview = {
script = "nextcloud-occ preview:pre-generate -vvv"; script = "${config.services.nextcloud.occ} preview:pre-generate -vvv";
startAt = "*-*-* 01:00:00 UTC"; startAt = "*-*-* 01:00:00 UTC";
}; };
services.nginx.virtualHosts.${host} = { services.nginx.virtualHosts.${host} = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
extraConfig = ''
proxy_max_temp_file_size 4096m;
'';
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ffmpeg_6-headless ffmpeg_6-headless
jpegoptim exiftool
exif
perl
perlPackages.ImageExifTool
]; ];
dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; }; dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; };

View file

@ -13,7 +13,15 @@ in {
services.garage = { services.garage = {
enable = true; enable = true;
package = pkgs.garage_0_9; package = pkgs.garage_0_9.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
# Allow 0 as a part number marker
(pkgs.fetchpatch {
url = "https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/670.patch";
hash = "sha256-28ctLl1qscMRj2JEVnmhuLyK1Avub8QeyfQFxAK0y08=";
})
];
});
settings = { settings = {
inherit data_dir metadata_dir; inherit data_dir metadata_dir;
@ -70,7 +78,7 @@ in {
proxy_set_header Host $host; proxy_set_header Host $host;
# Disable buffering to a temporary file. # Disable buffering to a temporary file.
proxy_max_temp_file_size 0; proxy_max_temp_file_size 0;
client_max_body_size 200M; client_max_body_size 5G;
''; '';
}; };

View file

@ -39,7 +39,7 @@ in {
email.subject.prefix = "[videos.dgnum]"; email.subject.prefix = "[videos.dgnum]";
webadmin.configuration.edition.allowed = false; webadmin.configuration.edition.allowed = true;
user.video_quota = "10GB"; user.video_quota = "10GB";
}; };

View file

@ -11,6 +11,7 @@ lib.extra.mkConfig {
"castopod" "castopod"
"metis" "metis"
"linkal" "linkal"
"matterbridge"
"ntfy-sh" "ntfy-sh"
"plausible" "plausible"
"wordpress" "wordpress"

View file

@ -0,0 +1,10 @@
{ config, ... }:
{
services.matterbridge = {
enable = true;
configPath = config.age.secrets."matterbridge-config_file".path;
};
dgn-secrets.matches."^matterbridge-.*$" = { owner = "matterbridge"; };
}

Binary file not shown.

View file

@ -3,6 +3,7 @@ let
publicKeys = lib.getNodeKeys "web01"; publicKeys = lib.getNodeKeys "web01";
in lib.setDefault { inherit publicKeys; } [ in lib.setDefault { inherit publicKeys; } [
"acme-certs_secret" "acme-certs_secret"
"matterbridge-config_file"
"named-bind_dnskeys_conf" "named-bind_dnskeys_conf"
"ntfy_sh-environment_file" "ntfy_sh-environment_file"
"plausible_admin-user-password-file" "plausible_admin-user-password-file"

View file

@ -105,8 +105,8 @@
"nixos-23.11": { "nixos-23.11": {
"type": "Channel", "type": "Channel",
"name": "nixos-23.11", "name": "nixos-23.11",
"url": "https://releases.nixos.org/nixos/23.11/nixos-23.11.750.7c4c20509c43/nixexprs.tar.xz", "url": "https://releases.nixos.org/nixos/23.11/nixos-23.11.1494.b4372c4924d9/nixexprs.tar.xz",
"hash": "1gla4s4jmzyhxkp60d8vak5ia87ry89bc8s4mrirasd46lj8wqc6" "hash": "0bisbm1081zyhicnc3hjmc04gq99lb60m1h4wpxb2jbmxmq1c3gz"
}, },
"nixos-python": { "nixos-python": {
"type": "Git", "type": "Git",

View file

@ -1,7 +1,5 @@
{ {
"nixos-23.11" = [ "nixos-23.11" = [
# [Backport release-23.11] zfs_2_1: init at 2.1.13
{ id = 270117; hash = "sha256-In3sogw/8TGYQQFCeBvdljANR0ZLng4magQ/4uyVy1A="; }
{ id = 241542; revert = true; hash = "sha256-uiRokmJewTLURuQkPWRfb3jgxjaDwfkXntj8PWk6pi8="; } { id = 241542; revert = true; hash = "sha256-uiRokmJewTLURuQkPWRfb3jgxjaDwfkXntj8PWk6pi8="; }
# castopod: 1.6.4 -> 1.7.0 + ajout du support de loadcredentials # castopod: 1.6.4 -> 1.7.0 + ajout du support de loadcredentials