retire pi4
This commit is contained in:
@@ -17,7 +17,7 @@ let
|
||||
hash = "sha256-dnhEjopeA0UiI+XVYHYpsjcEI6Y1Hacbi28hVKYQURg=";
|
||||
};
|
||||
|
||||
# "github.com/hslatman/caddy-crowdsec-bouncer/http@v0.9.2"
|
||||
# "github.com/hslatman/caddy-crowdsec-bouncer/http@v0.9.2"
|
||||
caddy = lib.${namespace}.mkModule {
|
||||
inherit config name;
|
||||
description = "caddy Service";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -9,7 +9,6 @@ with lib;
|
||||
let
|
||||
name = "nebula-lighthouse";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
rootUrl = "https://lighthouse.${namespace}.dev/";
|
||||
ca = config.sops.secrets."pi5/nebula/ca-cert".path;
|
||||
cert = config.sops.secrets."pi5/nebula/lighthouse-cert".path;
|
||||
key = config.sops.secrets."pi5/nebula/lighthouse-key".path;
|
||||
|
||||
@@ -42,4 +42,4 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
with lib;
|
||||
let
|
||||
name = "nebula";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
|
||||
ca = config.sops.secrets."jallen-nas/nebula/ca-cert".path;
|
||||
cert = config.sops.secrets."jallen-nas/nebula/nas-cert".path;
|
||||
|
||||
@@ -42,4 +42,4 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ let
|
||||
# richdocumentscode = nextcloud-code-server;
|
||||
# # richdocuments = nextcloud-richdocuments;
|
||||
# };
|
||||
|
||||
|
||||
# Use PostgreSQL for database
|
||||
config = {
|
||||
dbtype = "pgsql";
|
||||
@@ -43,7 +43,7 @@ let
|
||||
adminuser = "mjallen";
|
||||
adminpassFile = config.sops.secrets."matt_password".path;
|
||||
};
|
||||
|
||||
|
||||
# PHP settings
|
||||
phpOptions = lib.mkOverride 90 {
|
||||
memory_limit = "512M";
|
||||
@@ -56,20 +56,20 @@ let
|
||||
"opcache.save_comments" = "1";
|
||||
"opcache.revalidate_freq" = "1";
|
||||
};
|
||||
|
||||
|
||||
# Configure caching for better performance
|
||||
caching = {
|
||||
apcu = true;
|
||||
redis = true;
|
||||
memcached = false;
|
||||
};
|
||||
|
||||
|
||||
# Auto-update apps
|
||||
autoUpdateApps = {
|
||||
enable = false;
|
||||
startAt = "05:00:00";
|
||||
};
|
||||
|
||||
|
||||
# Configure HTTPS if enabled
|
||||
https = false;
|
||||
|
||||
@@ -100,18 +100,20 @@ let
|
||||
|
||||
users.users.nextcloud.isSystemUser = lib.mkForce true;
|
||||
users.users.nextcloud.isNormalUser = lib.mkForce false;
|
||||
users.groups.nextcloud = {};
|
||||
|
||||
users.groups.nextcloud = { };
|
||||
|
||||
# Configure web server
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
group = "jallen-nas";
|
||||
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
listen = [{
|
||||
addr = "0.0.0.0";
|
||||
port = cfg.port;
|
||||
ssl = false;
|
||||
}];
|
||||
listen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = cfg.port;
|
||||
ssl = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -119,4 +121,4 @@ let
|
||||
in
|
||||
{
|
||||
imports = [ nextcloudConfig ];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
@@ -15,7 +14,7 @@ let
|
||||
# OC_JWT_SECRET=${config.sops.placeholder."jallen-nas/onlyoffice-key"}
|
||||
# OC_TRANSFER_SECRET=${config.sops.placeholder."jallen-nas/onlyoffice-key"}
|
||||
# OC_MACHINE_AUTH_API_KEY=${config.sops.placeholder."jallen-nas/onlyoffice-key"}
|
||||
|
||||
|
||||
# OC_ADD_RUN_SERVICES=collaboration,app-provider
|
||||
# OC_REVA_GATEWAY=eu.opencloud.api.gateway
|
||||
# APP_PROVIDER_WOPI_APP_NAME=Collabora
|
||||
@@ -72,7 +71,7 @@ let
|
||||
options = { };
|
||||
|
||||
moduleConfig = {
|
||||
services.opencloud = {
|
||||
services.opencloud = {
|
||||
enable = true;
|
||||
url = "https://cloud.mjallen.dev";
|
||||
address = cfg.listenAddress;
|
||||
@@ -88,7 +87,7 @@ let
|
||||
OC_DB_NAME = "opencloud";
|
||||
OC_INSECURE = "true";
|
||||
OC_LOG_LEVEL = "debug";
|
||||
|
||||
|
||||
# PROXY_TLS = "false";
|
||||
# PROXY_HTTP_ADDR= "${cfg.listenAddress}:9200";
|
||||
# OC_URL = "https://cloud.mjallen.dev"
|
||||
@@ -116,4 +115,4 @@ let
|
||||
in
|
||||
{
|
||||
imports = [ opencloudConfig ];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,4 +73,4 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user