update pepe and sputnik

This commit is contained in:
Ingolf Wagner 2021-07-10 13:41:02 +02:00
parent 0105051718
commit e23e4dceb8
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 27 additions and 4 deletions

View file

@ -5,7 +5,7 @@
<system/server> <system/server>
./hardware-configuration.nix ./hardware-configuration.nix
./home-assistant.nix #./home-assistant.nix
./kodi.nix ./kodi.nix
./syncthing.nix ./syncthing.nix
./tinc.nix ./tinc.nix

View file

@ -47,8 +47,9 @@
memoryPercent = 50; memoryPercent = 50;
}; };
fileSystems."/share/" = { fileSystems."/share" = {
device = "/dev/ram1"; #device = "/dev/ram1";
device = "none";
fsType = "tmpfs"; fsType = "tmpfs";
}; };

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
services.xserver = { services.xserver = {
enable = true; enable = false;
autorun = false; autorun = false;
videoDrivers = [ "intel" ]; videoDrivers = [ "intel" ];
#deviceSection = '' #deviceSection = ''

View file

@ -259,6 +259,28 @@ in {
priority = 210; priority = 210;
extraConfig = "return 301 $scheme://$host/remote.php/dav;"; extraConfig = "return 301 $scheme://$host/remote.php/dav;";
}; };
"~ \.(?:css|js|svg|gif)$" = {
proxyPass = "http://nextcloud.workhorse.private$request_uri";
extraConfig = ''
expires 6M; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets
sub_filter "http://nextcloud.ingolf-wagner.de" "https://nextcloud.ingolf-wagner.de";
sub_filter "nextcloud.workhorse.private" "nextcloud.ingolf-wagner.de";
# used for view/edit office file via Office Online Server
client_max_body_size 0;
'';
};
"~ \.woff2?$" = {
proxyPass = "http://nextcloud.workhorse.private$request_uri";
extraConfig = ''
expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets
sub_filter "http://nextcloud.ingolf-wagner.de" "https://nextcloud.ingolf-wagner.de";
sub_filter "nextcloud.workhorse.private" "nextcloud.ingolf-wagner.de";
# used for view/edit office file via Office Online Server
client_max_body_size 0;
'';
};
} // error.locations; } // error.locations;
}; };