Update
This commit is contained in:
parent
880ed3d0e9
commit
57eb1c9459
@ -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
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user