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