Remove unused proxies, added some configs

This commit is contained in:
Chris Toph 2025-01-20 12:31:59 -05:00
parent dedc7c4b55
commit 01ec138a45

View file

@ -1,154 +1,134 @@
{ {
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
"ryot.foo" = { "ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy 104.40.4.44:80 reverse_proxy 104.40.4.44:80
''; '';
}; };
"adguard.ryot.foo" = { "adguard.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy 104.40.4.1:81 reverse_proxy 104.40.4.1:81
''; '';
}; };
"cloud.ryot.foo" = {
useACMEHost = "ryot.foo";
extraConfig = ''
reverse_proxy https://104.40.4.24:443 {
transport http {
tls_insecure_skip_verify
}
}
'';
};
"cloudflared.ryot.foo" = { "auth.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.8:14333 reverse_proxy http://104.40.4.44:9000 {
''; header_up Host {host}
}; header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Protocol {scheme}
header_up X-Forwarded-Port {server_port}
}
'';
};
# "dash.ryot.foo" = { "cloudflared.ryot.foo" = {
# useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
# extraConfig = '' extraConfig = ''
# reverse_proxy http://104.40.4.44:3001 reverse_proxy http://104.40.4.8:14333
# ''; '';
# }; };
# "dazzle.ryot.foo" = { "drive.ryot.foo" = {
# useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
# extraConfig = '' extraConfig = ''
# reverse_proxy http://104.40.4.44:8070 reverse_proxy http://104.40.4.24:8181 {
# ''; header_up Host {host}
# }; header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Protocol {scheme}
header_up X-Forwarded-Port {server_port}
}
'';
};
# "dockge.ryot.foo" = { "frp.ryot.foo" = {
# useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
# extraConfig = '' extraConfig = ''
# reverse_proxy http://104.40.4.44:5001 reverse_proxy http://104.40.4.44:4041
# ''; '';
# }; };
# "drop.ryot.foo" = { "grafana.ryot.foo" = {
# useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
# extraConfig = '' extraConfig = ''
# reverse_proxy http://104.40.4.44:5001 reverse_proxy http://104.40.4.44:3001
# ''; '';
# }; };
"drive.ryot.foo" = { "git.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:8080 reverse_proxy http://104.40.4.44:3003
''; '';
}; };
"frp.ryot.foo" = { "influx.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:4041 reverse_proxy http://104.40.4.44:8086
''; '';
}; };
"grafana.ryot.foo" = { "home.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:3001 reverse_proxy http://104.40.4.44:7475
''; '';
}; };
"git.ryot.foo" = { "komodo.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:3003 reverse_proxy http://104.40.4.44:9120
''; '';
}; };
"influx.ryot.foo" = { "mail.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:8086 reverse_proxy http://104.40.4.44:9002
''; '';
}; };
"home.ryot.foo" = { "map.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:7475 reverse_proxy http://104.40.4.44:25566
''; '';
}; };
"komodo.ryot.foo" = { "opn.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:9120 reverse_proxy 104.40.4.1
''; '';
}; };
"map.ryot.foo" = { "pve.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy http://104.40.4.44:25566 reverse_proxy 10.163.22.82:8006 {
''; transport http {
}; tls_insecure_skip_verify
}
"nginx.ryot.foo" = { }
useACMEHost = "ryot.foo"; '';
extraConfig = '' };
reverse_proxy http://104.40.4.44:81
'';
};
"opn.ryot.foo" = {
useACMEHost = "ryot.foo";
extraConfig = ''
reverse_proxy 104.40.4.1
'';
};
"pve.ryot.foo" = { "upsnap.ryot.foo" = {
useACMEHost = "ryot.foo"; useACMEHost = "ryot.foo";
extraConfig = '' extraConfig = ''
reverse_proxy 10.163.22.82:8006 { reverse_proxy http://104.40.4.44:8090
transport http { '';
tls_insecure_skip_verify };
}
}
'';
};
"upsnap.ryot.foo" = {
useACMEHost = "ryot.foo";
extraConfig = ''
reverse_proxy http://104.40.4.44:8090
'';
};
};
}; };
};
} }