opencloud fucked still lmao

This commit is contained in:
mjallen18
2025-12-09 17:15:49 -06:00
parent 4b53a89030
commit 989e717e4e
3 changed files with 19 additions and 11 deletions

View File

@@ -13,14 +13,17 @@ let
services.opencloud = {
enable = true;
port = cfg.port;
environment = {
OC_OIDC_ISSUER = "";
OC_EXCLUDE_RUN_SERVICES = "idp";
PROXY_OIDC_REWRITE_WELLKNOWN = true;
PROXY_USER_OIDC_CLAIM = "preferred_username";
PROXY_AUTOPROVISION_ACCOUNTS = true;
PROXY_ROLE_ASSIGNMENT_DRIVER = "oidc";
};
stateDir = cfg.dataDir;
address = "0.0.0.0";
url = "https://10.0.1.3:${toString cfg.port}";
# environment = {
# OC_OIDC_ISSUER = "";
# OC_EXCLUDE_RUN_SERVICES = "idp";
# PROXY_OIDC_REWRITE_WELLKNOWN = "true";
# PROXY_USER_OIDC_CLAIM = "preferred_username";
# PROXY_AUTOPROVISION_ACCOUNTS = "true";
# PROXY_ROLE_ASSIGNMENT_DRIVER = "oidc";
# };
};
};
@@ -43,11 +46,11 @@ in
options.${namespace}.services.opencloud = {
enable = mkEnableOption "opencloud service";
port = mkOpt types.int 4000 "Port for opencloud to be hosted on";
port = mkOpt types.int 8400 "Port for opencloud to be hosted on";
localAddress = mkOpt types.str "127.0.0.1" "local address of the service";
dataDir = mkOpt types.str "" "Path to the data dir";
dataDir = mkOpt types.str "/media/nas/main/nix-app-data/opencloud" "Path to the data dir";
reverseProxy = mkReverseProxyOpt;
};

View File

@@ -11,6 +11,10 @@
};
lubelogger.enable = true;
nextcloud.enable = true;
opencloud = {
enable = false;
port = 9200;
};
onlyoffice.enable = true;
ai.enable = true;
paperless.enable = true;

View File

@@ -157,7 +157,8 @@ in
3001
3333
5201 # iperf
8448
8400
9200
];
allowedUDPPorts = config.${namespace}.network.firewall.allowedTCPPorts;
};