From 6e0acf9132cc9f8993c6ddb36d4ca6536f2bb17f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 23 Jun 2024 15:56:38 +0300 Subject: [PATCH] Change : Fix referrer-policy. --- container/proxy/host/Change.nix | 3 +++ host/home/Container.nix | 2 +- user/common/yazi/module/Theme.nix | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/container/proxy/host/Change.nix b/container/proxy/host/Change.nix index 74efcdd9..27d3ac2f 100644 --- a/container/proxy/host/Change.nix +++ b/container/proxy/host/Change.nix @@ -11,7 +11,10 @@ in { allow ${container.localAccess}; allow ${container.config.vpn.address}; deny all; + proxy_pass http://''$${name}$request_uri; + + add_header Referrer-Policy 'origin'; } ssl_certificate /etc/letsencrypt/live/${domain}/fullchain.pem; diff --git a/host/home/Container.nix b/host/home/Container.nix index f79585f9..6da46dfb 100644 --- a/host/home/Container.nix +++ b/host/home/Container.nix @@ -60,7 +60,7 @@ in { (import ../../container/Read.nix args) (import ../../container/Redis.nix args) (import ../../container/Search.nix args) - # (import ../../container/Status.nix args) + (import ../../container/Status.nix args) (import ../../container/Stock.nix args) (import ../../container/Vpn.nix args) (import ../../container/Watch.nix args) diff --git a/user/common/yazi/module/Theme.nix b/user/common/yazi/module/Theme.nix index 3239875e..99cd7a33 100644 --- a/user/common/yazi/module/Theme.nix +++ b/user/common/yazi/module/Theme.nix @@ -1,4 +1,4 @@ -{ pkgs, setting, style, ... }: let +{ pkgs, style, ... }: let border = { fg = "#${style.color.border}"; }; @@ -7,7 +7,7 @@ in { manager = { cwd = { fg = "#${style.color.fg.light}"; - bg = "#${style.color.bg.dark}"; + # bg = "#${style.color.bg.dark}"; }; hovered = { fg = "#${style.color.fg.light}";