add proxy to nfss
This commit is contained in:
parent
09562884c8
commit
7de41ebb3b
2 changed files with 49 additions and 0 deletions
47
hosts/nixos/nfss/proxy.nix
Normal file
47
hosts/nixos/nfss/proxy.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Traefik dynamic configuration for vps host
|
||||
services.traefik.dynamic.files."proxy".settings = {
|
||||
http = {
|
||||
serversTransports = {
|
||||
longTimeout = {
|
||||
forwardingTimeouts = {
|
||||
dialTimeout = "30s";
|
||||
responseHeaderTimeout = "1200s";
|
||||
idleConnTimeout = "1200s";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
routers = {
|
||||
|
||||
deluge = {
|
||||
rule = "Host(`deluge.home.yanlincs.com`)";
|
||||
service = "deluge";
|
||||
tls = {
|
||||
certResolver = "cloudflare";
|
||||
domains = [{
|
||||
main = "*.home.yanlincs.com";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services = {
|
||||
|
||||
deluge = {
|
||||
loadBalancer = {
|
||||
servers = [{
|
||||
url = "http://127.0.0.1:8112";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue