Server: move services to subdomains
This commit is contained in:
parent
5a52fd9f3a
commit
1a84aa2290
3 changed files with 17 additions and 22 deletions
|
|
@ -7,18 +7,21 @@
|
|||
settings = {
|
||||
incomplete-dir-enabled = false;
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
rpc-host-whitelist = "everest";
|
||||
rpc-host-whitelist = "transmission.everest.sable-pancake.ts.net";
|
||||
rpc-whitelist = "127.0.0.1";
|
||||
};
|
||||
};
|
||||
|
||||
# Add a cname for transmission
|
||||
services.dnsmasq.settings.cname = [ "transmission.everest.sable-pancake.ts.net,everest" ];
|
||||
|
||||
# Set up traefik as the reverse proxy for transmission
|
||||
services.traefik = {
|
||||
dynamicConfigOptions = {
|
||||
http = {
|
||||
routers = {
|
||||
transmission-subpath = {
|
||||
rule = "PathPrefix(`/transmission`)";
|
||||
transmission-subdomain = {
|
||||
rule = "Host(`transmission.everest.sable-pancake.ts.net`)";
|
||||
service = "transmission";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue