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";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -4,9 +4,11 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./containers.nix
|
./containers.nix
|
||||||
|
./proxy.nix
|
||||||
../system-default.nix
|
../system-default.nix
|
||||||
../../../modules/vpn/tailscale.nix
|
../../../modules/vpn/tailscale.nix
|
||||||
../../../modules/podman.nix
|
../../../modules/podman.nix
|
||||||
|
../../../modules/traefik.nix
|
||||||
../../../modules/borg/client.nix
|
../../../modules/borg/client.nix
|
||||||
../../../modules/media/server.nix
|
../../../modules/media/server.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue