servers working perfectly, many adjustments
This commit is contained in:
@@ -266,6 +266,8 @@ users.users.nextcloud = {
|
||||
extraGroups = [ "nextcloud" ];
|
||||
packages = (with pkgs; [
|
||||
nodejs_14
|
||||
perl
|
||||
exiftool
|
||||
### Currently incompatible with newer versions, and compiling
|
||||
### an older version takes 7 hours.
|
||||
# cudatoolkit
|
||||
@@ -908,65 +910,44 @@ programs = {
|
||||
};
|
||||
|
||||
services = {
|
||||
jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
jellyfin.enable = true;
|
||||
# vaultwarden.enable = true;
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
# package = pkgs.nextcloud27;
|
||||
maxUploadSize = "50G";
|
||||
enableImagemagick = true;
|
||||
appstoreEnable = true;
|
||||
extraAppsEnable = true;
|
||||
hostName = "cloud.servidos.lat";
|
||||
https = true;
|
||||
caching = {
|
||||
redis = true;
|
||||
};
|
||||
enable = true;
|
||||
package = pkgs.nextcloud26;
|
||||
appstoreEnable = true;
|
||||
configureRedis = true;
|
||||
maxUploadSize = "512M";
|
||||
extraAppsEnable = true;
|
||||
enableImagemagick = true;
|
||||
hostName = "cloud.servidos.lat";
|
||||
config = {
|
||||
adminpassFile = "${pkgs.writeText "adminpass" "Overlying-Hatchback-Charting-Encounter-Deface-Gallantly7"}";
|
||||
overwriteProtocol = "https";
|
||||
trustedProxies = [ "nginx" ];
|
||||
extraTrustedDomains = [ "localhost:80" "cloud.danilo-reyes.com" "cloud.servidos.lat" ];
|
||||
defaultPhoneRegion = "MX";
|
||||
dbtype = "pgsql";
|
||||
dbuser = "nextcloud";
|
||||
dbpassFile = "${pkgs.writeText "dbpass" "sopacerias"}";
|
||||
dbtableprefix = "oc_";
|
||||
dbname = "nextcloud";
|
||||
trustedProxies = [ "nginx" ];
|
||||
extraTrustedDomains = [ "danilo-reyes.com" ];
|
||||
};
|
||||
extraOptions = {
|
||||
redis = {
|
||||
host = "localhost";
|
||||
port = 6379;
|
||||
};
|
||||
memcache = {
|
||||
local = "\\OC\\Memcache\\Redis";
|
||||
distributed = "\\OC\\Memcache\\Redis";
|
||||
locking = "\\OC\\Memcache\\Redis";
|
||||
};
|
||||
mail_smtpmode = "sendmail";
|
||||
mail_sendmailmode = "pipe";
|
||||
"installed" = true;
|
||||
};
|
||||
phpOptions = {
|
||||
display_errors = "stderr";
|
||||
error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT";
|
||||
expose_php = "Off";
|
||||
"opcache.enable_cli" = "1";
|
||||
"opcache.fast_shutdown" = "1";
|
||||
"opcache.interned_strings_buffer" = "10";
|
||||
"opcache.max_accelerated_files" = "10000";
|
||||
"opcache.memory_consumption" = "128";
|
||||
"opcache.revalidate_freq" = "1";
|
||||
"openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
|
||||
catch_workers_output = "yes";
|
||||
short_open_tag = "Off";
|
||||
# defaults end here
|
||||
upload_max_filesize = "50G";
|
||||
post_max_size = "50G";
|
||||
memory_limit = "2G";
|
||||
"memories.exiftool" = "/etc/profiles/per-user/nextcloud/bin/exiftool";
|
||||
enabledPreviewProviders = [
|
||||
"OC\\Preview\\Image"
|
||||
"OC\\Preview\\HEIC"
|
||||
"OC\\Preview\\TIFF"
|
||||
"OC\\Preview\\MKV"
|
||||
"OC\\Preview\\MP4"
|
||||
"OC\\Preview\\AVI"
|
||||
"OC\\Preview\\Movie"
|
||||
];
|
||||
opcache.jit = 1255;
|
||||
opcache.jit_buffer_size = "128M";
|
||||
};
|
||||
phpExtraExtensions = all: [ all.pdlib all.bz2 ];
|
||||
};
|
||||
@@ -1063,35 +1044,54 @@ systemd.services = {
|
||||
# ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
|
||||
# };
|
||||
# };
|
||||
"nextcloud_scrapsync" = {
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [
|
||||
pkgs.bash
|
||||
jawz_nextcloud_scrapsync
|
||||
];
|
||||
serviceConfig = {
|
||||
RestartSec = 30;
|
||||
ExecStart = "${jawz_nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
||||
};
|
||||
};
|
||||
# "nextcloud_scrapsync" = {
|
||||
# description = "Sync scrapped files with nextcloud";
|
||||
# wantedBy = [ "default.target" ];
|
||||
# path = [
|
||||
# pkgs.bash
|
||||
# jawz_nextcloud_scrapsync
|
||||
# ];
|
||||
# serviceConfig = {
|
||||
# RestartSec = 30;
|
||||
# ExecStart = "${jawz_nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
||||
# };
|
||||
# };
|
||||
# "nextcloud_previews" = {
|
||||
# description = "Generate previews";
|
||||
# wantedBy = [ "default.target" ];
|
||||
# path = [
|
||||
# pkgs.nextcloud26
|
||||
# ];
|
||||
# serviceConfig = {
|
||||
# RestartSec = 30;
|
||||
# ExecStart = "${pkgs.nextcloud26}/occ preview:pre-generate";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
systemd.timers = {
|
||||
"nextcloud_scrapsync" = {
|
||||
enable = true;
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar= [
|
||||
"*-*-* 01:32:00"
|
||||
"*-*-* 08:32:00"
|
||||
"*-*-* 14:32:00"
|
||||
"*-*-* 20:32:00"
|
||||
];
|
||||
RandomizedDelaySec = 30;
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
# "nextcloud_scrapsync" = {
|
||||
# enable = true;
|
||||
# description = "Sync scrapped files with nextcloud";
|
||||
# wantedBy = [ "timers.target" ];
|
||||
# timerConfig = {
|
||||
# OnCalendar= [
|
||||
# "*-*-* 01:32:00"
|
||||
# "*-*-* 08:32:00"
|
||||
# "*-*-* 14:32:00"
|
||||
# "*-*-* 20:32:00"
|
||||
# ];
|
||||
# RandomizedDelaySec = 30;
|
||||
# Persistent = true;
|
||||
# };
|
||||
# };
|
||||
# "nextcloud_previews" = {
|
||||
# enable = true;
|
||||
# description = "Generate previews";
|
||||
# wantedBy = [ "timers.target" ];
|
||||
# timerConfig = {
|
||||
# OnCalendar = "*:0/10";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
systemd.user.services = {
|
||||
"HentaiAtHome" = {
|
||||
@@ -1168,7 +1168,6 @@ networking = {
|
||||
6969 # HentaiAtHome
|
||||
25152 # ssh
|
||||
49494 # gerbera
|
||||
8086 8920 # jellyfin
|
||||
];
|
||||
open_firewall_port_ranges = [
|
||||
{ from = 1714; to = 1764; } # kdeconnect
|
||||
|
||||
Reference in New Issue
Block a user