mirror of https://gitlab.com/curben/blog
post(caddy-nixos-1): remove service-specific options from nixos conf
This commit is contained in:
parent
7814bc16fc
commit
40749f14c8
|
@ -225,10 +225,6 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
|
||||||
home = "/var/lib/caddyTor";
|
home = "/var/lib/caddyTor";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
tor = {
|
|
||||||
home = "/var/lib/tor";
|
|
||||||
createHome = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
groups = {
|
groups = {
|
||||||
|
@ -238,9 +234,6 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
|
||||||
caddyTor = {
|
caddyTor = {
|
||||||
members = [ "caddyTor" ];
|
members = [ "caddyTor" ];
|
||||||
};
|
};
|
||||||
tor = {
|
|
||||||
members = [ "tor" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -255,38 +248,6 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
|
||||||
googleAuthenticator.enable = false;
|
googleAuthenticator.enable = false;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
## Caddy web server
|
|
||||||
# require = [ /etc/caddy/caddyProxy.nix /etc/caddy/caddyTor.nix ];
|
|
||||||
# services.caddyProxy = {
|
|
||||||
# enable = true;
|
|
||||||
# config = "/etc/caddy/caddyProxy.conf";
|
|
||||||
# };
|
|
||||||
# services.caddyTor = {
|
|
||||||
# enable = true;
|
|
||||||
# config = "/etc/caddy/caddyTor.conf";
|
|
||||||
# };
|
|
||||||
|
|
||||||
## Tor onion
|
|
||||||
services.tor = {
|
|
||||||
enable = false;
|
|
||||||
enableGeoIP = false;
|
|
||||||
hiddenServices = [{
|
|
||||||
name = "proxy";
|
|
||||||
version = 3;
|
|
||||||
map = [{
|
|
||||||
port = "80";
|
|
||||||
toHost = "[::1]";
|
|
||||||
toPort = "8080";
|
|
||||||
}];
|
|
||||||
}];
|
|
||||||
extraConfig =
|
|
||||||
''
|
|
||||||
ClientUseIPv4 0
|
|
||||||
ClientUseIPv6 1
|
|
||||||
ClientPreferIPv6ORPort 1
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
Loading…
Reference in New Issue