fix cloud
This commit is contained in:
@@ -47,10 +47,6 @@ let
|
|||||||
handle @hass {
|
handle @hass {
|
||||||
reverse_proxy http://nuc-nixos.local:8123
|
reverse_proxy http://nuc-nixos.local:8123
|
||||||
}
|
}
|
||||||
|
|
||||||
handle {
|
|
||||||
respond "Forbidden" 403
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ let
|
|||||||
options = { };
|
options = { };
|
||||||
|
|
||||||
moduleConfig = {
|
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
|
# Setup the native NixOS Nextcloud service
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -80,7 +85,11 @@ let
|
|||||||
overwritehost = "cloud.mjallen.dev";
|
overwritehost = "cloud.mjallen.dev";
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
default_phone_region = "US";
|
default_phone_region = "US";
|
||||||
trusted_proxies = [ "10.0.1.3" ];
|
trusted_proxies = [
|
||||||
|
"10.0.1.3"
|
||||||
|
"127.0.0.1"
|
||||||
|
"::1"
|
||||||
|
];
|
||||||
trusted_domains = [
|
trusted_domains = [
|
||||||
"cloud.mjallen.dev"
|
"cloud.mjallen.dev"
|
||||||
"10.0.1.3:${toString cfg.port}"
|
"10.0.1.3:${toString cfg.port}"
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ in
|
|||||||
reverseProxy = disabled;
|
reverseProxy = disabled;
|
||||||
};
|
};
|
||||||
lemonade = {
|
lemonade = {
|
||||||
enable = true;
|
enable = false;
|
||||||
port = 8001;
|
port = 8001;
|
||||||
modelsDir = "/media/nas/main/ai/lemonade/models";
|
modelsDir = "/media/nas/main/ai/lemonade/models";
|
||||||
reverseProxy = disabled;
|
reverseProxy = disabled;
|
||||||
@@ -188,6 +188,10 @@ in
|
|||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9988;
|
port = 9988;
|
||||||
|
reverseProxy = {
|
||||||
|
enable = true;
|
||||||
|
subdomain = "cloud";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
ntfy = {
|
ntfy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user