Small modules config restructure

Changed variables names in every module
This commit is contained in:
aloslider committed 2026-10-31 19:48:50 +03:00
1 parent c1d2e52bf8
commit c92b90e406
83 files changed
+616 -523

No files matched your search

@@ -1,13 +1,13 @@
{ config, lib, ... }:
with lib;
let
rootCfg = config.selfhosted.seafile;
moduleCfg = config.selfhosted.seafile;
in
{
config = mkIf rootCfg.enable {
config = mkIf moduleCfg.enable {
sops.templates."seafile-thumbnail.env".content = ''
TIME_ZONE=${config.time.timeZone}
SEAFILE_MYSQL_DB_HOST=${rootCfg.mariadb.name}
SEAFILE_MYSQL_DB_HOST=${moduleCfg.mariadb.name}
SEAFILE_MYSQL_DB_PORT=3306
SEAFILE_MYSQL_DB_USER=seafile
SEAFILE_MYSQL_DB_PASSWORD=${config.sops.placeholder."seafile/mysql_password"}
@@ -17,7 +17,7 @@ in
JWT_PRIVATE_KEY=${config.sops.placeholder."seafile/jwt_private_key"}
SEAFILE_LOG_TO_STDOUT=false
SITE_ROOT=/
INNER_SEAHUB_SERVICE_URL=http://${rootCfg.server.name}
INNER_SEAHUB_SERVICE_URL=http://${moduleCfg.server.name}
THUMBNAIL_IMAGE_ORIGINAL_SIZE_LIMIT=256
SEAF_SERVER_STORAGE_TYPE=disk
'';