rename shared to modules

This commit is contained in:
Hadi
2024-06-18 09:21:14 +02:00
committed by GitHub
parent d3e6730df0
commit 2ccd17867f
16 changed files with 23 additions and 23 deletions

17
hosts/modules/nginx.nix Normal file
View File

@@ -0,0 +1,17 @@
{
services.nginx = {
enable = true;
virtualHosts = {
"test.anotherhadi.com" = {
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";
};
};
};
};
}