feat: rework network config
This commit is contained in:
parent
43d47ec3b6
commit
1ddbd3b8b6
2 changed files with 82 additions and 0 deletions
28
config/endpoints.nix
Normal file
28
config/endpoints.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
let
|
||||
lib = import <nixpkgs/lib>;
|
||||
net = import ./network.nix;
|
||||
in
|
||||
rec {
|
||||
[
|
||||
{
|
||||
type = "web";
|
||||
domain = "${net.devices.remote_proxy.domain}";
|
||||
endpoint = "/";
|
||||
force_ssl = true;
|
||||
port = 443;
|
||||
content = web.home;
|
||||
}
|
||||
{
|
||||
type = "proxy";
|
||||
domain = "torrent.${net.local_domain}";
|
||||
endpoint = "/";
|
||||
forceSsl = false;
|
||||
port = 80;
|
||||
content = {
|
||||
type = "service";
|
||||
url = "localhost";
|
||||
port = services.torrent.port;
|
||||
};
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue