Server: replace traefik with caddy
This commit is contained in:
parent
5001e70c14
commit
863840b2b1
6 changed files with 33 additions and 77 deletions
|
|
@ -40,20 +40,12 @@ in {
|
|||
# Add a cname for transmission
|
||||
services.dnsmasq.settings.cname = ["transmission.everest.tailscale,everest"];
|
||||
|
||||
# Set up traefik as the reverse proxy for transmission
|
||||
services.traefik = {
|
||||
dynamicConfigOptions = {
|
||||
http = {
|
||||
routers = {
|
||||
transmission-subdomain = {
|
||||
rule = "Host(`transmission.everest.tailscale`)";
|
||||
service = "transmission";
|
||||
};
|
||||
};
|
||||
services.transmission.loadBalancer.servers = [
|
||||
{url = "http://localhost:${toString config.services.transmission.settings.rpc-port}";}
|
||||
];
|
||||
};
|
||||
};
|
||||
# Set up caddy as the reverse proxy for transmission
|
||||
services.caddy.virtualHosts.transmission = {
|
||||
hostName = "transmission.everest.tailscale";
|
||||
extraConfig = ''
|
||||
import tailscale
|
||||
reverse_proxy localhost:${toString config.services.transmission.settings.rpc-port}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue