Compare commits

...

5 commits

3 changed files with 30 additions and 27 deletions

View file

@ -4,10 +4,6 @@
enable = true; enable = true;
virtualHosts = { virtualHosts = {
":5050".extraConfig = ''
reverse_proxy :8083
'';
"http://sisyphe.normandy.hypervirtual.world".extraConfig = '' "http://sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8003 reverse_proxy :8003
''; '';
@ -16,10 +12,6 @@
reverse_proxy :3333 reverse_proxy :3333
''; '';
"http://photos.hypervirtual.world".extraConfig = ''
reverse_proxy :2342
'';
"http://books.hypervirtual.world".extraConfig = '' "http://books.hypervirtual.world".extraConfig = ''
reverse_proxy :8083 reverse_proxy :8083
''; '';
@ -28,10 +20,6 @@
reverse_proxy :3030 reverse_proxy :3030
''; '';
":2344".extraConfig = ''
reverse_proxy :2342
'';
"http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = '' "http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8096 reverse_proxy :8096
''; '';
@ -63,6 +51,10 @@
"http://status.normandy.hypervirtual.world".extraConfig = '' "http://status.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :4000 reverse_proxy :4000
''; '';
"http://transmission.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :9091
'';
}; };
}; };

View file

@ -1,4 +1,9 @@
{ config, pkgs, ... }: {
config,
pkgs,
lib,
...
}:
{ {
imports = [ imports = [
"${ "${
@ -44,8 +49,16 @@
overwriteprotocol = "https"; overwriteprotocol = "https";
log_type = "file"; # temporary fix for https://nixos.org/manual/nixos/stable/#module-services-nextcloud-warning-logreader log_type = "file"; # temporary fix for https://nixos.org/manual/nixos/stable/#module-services-nextcloud-warning-logreader
default_phone_region = "FR"; default_phone_region = "FR";
default_locale = "fr_FR";
default_language = "fr";
default_timezone = "Europe/Paris";
}; };
phpExtraExtensions = all: [
all.pdlib
all.redis
all.bz2
];
phpOptions."opcache.interned_strings_buffer" = "23"; phpOptions."opcache.interned_strings_buffer" = "23";
extraApps = { extraApps = {
inherit (config.services.nextcloud.package.packages.apps) inherit (config.services.nextcloud.package.packages.apps)
@ -60,20 +73,24 @@
url = "https://github.com/pulsejet/memories/releases/download/v7.3.1/memories.tar.gz"; url = "https://github.com/pulsejet/memories/releases/download/v7.3.1/memories.tar.gz";
license = "agpl3Only"; license = "agpl3Only";
}; };
/*
registration = pkgs.fetchNextcloudApp { not useful for me
sha256 = "sha256-dDaQHyHdkkd8ZammLdck2HNGqqfEaunwevdPzbWzB8Y="; registration = pkgs.fetchNextcloudApp {
url = "https://github.com/nextcloud-releases/registration/releases/download/v2.4.0/registration-v2.4.0.tar.gz"; sha256 = "sha256-dDaQHyHdkkd8ZammLdck2HNGqqfEaunwevdPzbWzB8Y=";
license = "agpl3Only"; url = "https://github.com/nextcloud-releases/registration/releases/download/v2.4.0/registration-v2.4.0.tar.gz";
}; license = "agpl3Only";
};
*/
facerecognition = pkgs.fetchNextcloudApp { facerecognition = pkgs.fetchNextcloudApp {
sha256 = "sha256-1dfpmnyyrjyn7wbjfj3w072rzfl7zwm8ppphgsg8ampw2dy7y6yk"; sha256 = "1dfpmnyyrjyn7wbjfj3w072rzfl7zwm8ppphgsg8ampw2dy7y6yk";
url = "https://github.com/matiasdelellis/facerecognition/releases/download/v0.9.51/facerecognition.tar.gz"; url = "https://github.com/matiasdelellis/facerecognition/releases/download/v0.9.51/facerecognition.tar.gz";
license = "agpl3Only"; license = "agpl3Only";
}; };
}; };
extraAppsEnable = true; extraAppsEnable = true;
appstoreEnable = true; # why i would want appstore to be disabled ???
autoUpdateApps.enable = true;
extraOptions."memories.exiftool" = "${lib.getExe pkgs.exiftool}";
}; };
} }

View file

@ -38,12 +38,6 @@ in
22 # ssh 22 # ssh
8008 # matrix-synapse 8008 # matrix-synapse
8448 # matrix-synapse 8448 # matrix-synapse
3030
3333
2344
4000
5050 # calibre-web
9091 # transmission
]; ];
allowedUDPPorts = [ ]; allowedUDPPorts = [ ];
}; };