Add new cnames for proxy
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./proxy.nix
|
||||
];
|
||||
}
|
||||
|
11
services/http-proxy/proxy.nix
Normal file
11
services/http-proxy/proxy.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
configFile = pkgs.writeText "Caddyfile" ''
|
||||
http://nzbget.t-juice.club {
|
||||
reverse_proxy http://10.69.12.51:6789
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user