- Introduces new modules for cloud, backup, and NFS services - Removes deprecated Caddy and cloudflared configs - Migrate /pool from SSHFS to NFS - Migrate filerun and SnapRAID configurations to cloud only for better modularity
19 lines
487 B
Nix
19 lines
487 B
Nix
{
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"drive.ryot.foo" = {
|
|
useACMEHost = "ryot.foo";
|
|
extraConfig = ''
|
|
reverse_proxy http://localhost:8282 {
|
|
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}
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|