diff --git a/docs/src/README_template.md b/docs/src/README_template.md index e39c8df..1b8c39f 100644 --- a/docs/src/README_template.md +++ b/docs/src/README_template.md @@ -31,9 +31,9 @@ It's a simple way to manage your system configuration and dotfiles. git clone https://github.com/anotherhadi/nixy ~/.config/nixos ``` -- Change the username in the flake.nix file -- import the guest configuration instead of the `hosts/laptop` one -- import your hardware-configuration.nix into the `hosts/guest` folder +- Copy the `hosts/guest` folder and rename it to your system name + - Change the variables inside your new hosts +.. ```sh sudo nixos-rebuild switch --flake ~/.config/nixos#nixy diff --git a/hosts/server/variables.nix b/hosts/server/variables.nix index 545c699..94363c0 100644 --- a/hosts/server/variables.nix +++ b/hosts/server/variables.nix @@ -26,6 +26,6 @@ sops = true; obsidian = false; - theme = import ../themes/catppuccin.nix; # select your theme here + theme = import ../themes/windows.nix; # select your theme here }; } diff --git a/hosts/shared/nginx.nix b/hosts/shared/nginx.nix index fb09e3f..33b15fb 100644 --- a/hosts/shared/nginx.nix +++ b/hosts/shared/nginx.nix @@ -3,7 +3,14 @@ enable = true; virtualHosts = { "test.anotherhadi.com" = { - locations."/" = { proxyPass = "http://192.168.2.22"; }; + locations."/" = { + proxy_set_header = [ + "X-Real-IP $remote_addr" + "proxy_set_header Host $host" + "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for" + ]; + proxyPass = "http://192.168.2.22:80"; + }; }; }; };