diff --git a/configs/pepe/configuration.nix b/configs/pepe/configuration.nix index dbebcf7..0dae8d1 100644 --- a/configs/pepe/configuration.nix +++ b/configs/pepe/configuration.nix @@ -5,7 +5,7 @@ ./hardware-configuration.nix - ./home-assistant.nix + #./home-assistant.nix ./kodi.nix ./syncthing.nix ./tinc.nix diff --git a/configs/pepe/hardware-configuration.nix b/configs/pepe/hardware-configuration.nix index ef1bfc4..80f4426 100644 --- a/configs/pepe/hardware-configuration.nix +++ b/configs/pepe/hardware-configuration.nix @@ -47,8 +47,9 @@ memoryPercent = 50; }; - fileSystems."/share/" = { - device = "/dev/ram1"; + fileSystems."/share" = { + #device = "/dev/ram1"; + device = "none"; fsType = "tmpfs"; }; diff --git a/configs/pepe/kodi.nix b/configs/pepe/kodi.nix index 646e92f..b2e0181 100644 --- a/configs/pepe/kodi.nix +++ b/configs/pepe/kodi.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { services.xserver = { - enable = true; + enable = false; autorun = false; videoDrivers = [ "intel" ]; #deviceSection = '' diff --git a/configs/sputnik/nginx.nix b/configs/sputnik/nginx.nix index 657f3c9..0102c77 100644 --- a/configs/sputnik/nginx.nix +++ b/configs/sputnik/nginx.nix @@ -259,6 +259,28 @@ in { priority = 210; 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; };