This commit is contained in:
Hadi
2024-06-17 23:57:26 +02:00
parent 880ed3d0e9
commit 57eb1c9459
3 changed files with 12 additions and 5 deletions

View File

@@ -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
};
}

View File

@@ -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";
};
};
};
};