fix cloud

This commit is contained in:
mjallen18
2026-03-30 13:34:47 -05:00
parent 6d6618a683
commit 47b9c1ae98
3 changed files with 15 additions and 6 deletions

View File

@@ -47,10 +47,6 @@ let
handle @hass {
reverse_proxy http://nuc-nixos.local:8123
}
handle {
respond "Forbidden" 403
}
'';
};

View File

@@ -17,6 +17,11 @@ let
options = { };
moduleConfig = {
# Override the empty systemd service created by mkModule.
# The native NixOS nextcloud module doesn't create a persistent "nextcloud.service"
# (it uses PHP-FPM pools and cron instead), so we clear this to avoid the error:
# "Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing."
systemd.services.nextcloud = lib.mkForce { };
# Setup the native NixOS Nextcloud service
services.nextcloud = {
enable = true;
@@ -80,7 +85,11 @@ let
overwritehost = "cloud.mjallen.dev";
log_type = "file";
default_phone_region = "US";
trusted_proxies = [ "10.0.1.3" ];
trusted_proxies = [
"10.0.1.3"
"127.0.0.1"
"::1"
];
trusted_domains = [
"cloud.mjallen.dev"
"10.0.1.3:${toString cfg.port}"

View File

@@ -149,7 +149,7 @@ in
reverseProxy = disabled;
};
lemonade = {
enable = true;
enable = false;
port = 8001;
modelsDir = "/media/nas/main/ai/lemonade/models";
reverseProxy = disabled;
@@ -188,6 +188,10 @@ in
nextcloud = {
enable = true;
port = 9988;
reverseProxy = {
enable = true;
subdomain = "cloud";
};
};
ntfy = {
enable = true;