dot.nix/host/proxy/modules/caddy/default.nix
Chris Toph ed2507c9f1 DNS changed in OPNsense, proxy changes
- proxy no longer handles all the redirecting
- caddy modules in service lxcs
2025-01-22 17:28:07 -05:00

51 lines
1.2 KiB
Nix

{
services.caddy = {
enable = true;
virtualHosts = {
# "ryot.foo" = {
# useACMEHost = "ryot.foo";
# extraConfig = ''
# reverse_proxy 104.40.4.44:80
# '';
# };
"cloudflared.ryot.foo" = {
useACMEHost = "ryot.foo";
extraConfig = ''
reverse_proxy localhost:14333
'';
};
# "drive.ryot.foo" = {
# useACMEHost = "ryot.foo";
# extraConfig = ''
# 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}
# }
# '';
# };
# "opn.ryot.foo" = {
# useACMEHost = "ryot.foo";
# extraConfig = ''
# reverse_proxy 104.40.4.1
# '';
# };
# "pve.ryot.foo" = {
# useACMEHost = "ryot.foo";
# extraConfig = ''
# reverse_proxy 10.163.22.82:8006 {
# transport http {
# tls_insecure_skip_verify
# }
# }
# '';
# };
};
};
}