🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Change self-hosted limit to 50 GB
Edward Cui53cd951b99b8
diff --git a/client/src/components/SiteSettings/ImportManager.tsx b/client/src/components/SiteSettings/ImportManager.tsxindex e64e21437..3bd1e41f6 100644--- a/client/src/components/SiteSettings/ImportManager.tsx+++ b/client/src/components/SiteSettings/ImportManager.tsx@@ -35,7 +35,7 @@ interface ImportManagerProps {disabled: boolean;}-const MAX_FILE_SIZE = IS_CLOUD ? 500 * 1024 * 1024 : Infinity; // 500 MB for cloud, infinite for self-hosted+const MAX_FILE_SIZE = IS_CLOUD ? 500 * 1024 * 1024 : 50 * 1024 * 1024 * 1024; // 500 MB for cloud, 50 GB for self-hostedconst ALLOWED_FILE_TYPES = ["text/csv"];const ALLOWED_EXTENSIONS = [".csv"];const PLATFORMS = [{ value: "umami", label: "Umami" }] as const;@@ -47,7 +47,6 @@ const importFormSchema = z.object({.refine(files => files.length === 1, "Please select a file").refine(files => {- if (!IS_CLOUD) return true;const file = files[0];return file && file.size <= MAX_FILE_SIZE;},diff --git a/docker-compose.yml b/docker-compose.ymlindex 694942d7e..22fde23e6 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -16,8 +16,8 @@ services:# Pass domain name for use in Caddyfile# Email is configured via Caddyfile global options- DOMAIN_NAME=${DOMAIN_NAME}- # No limit for import endpoint on self-hosted (empty value = unlimited)- # - MAX_IMPORT_SIZE=+ # 50GB limit for import endpoint on self-hosted+ - MAX_IMPORT_SIZE=50GBdepends_on:- backend- clientdiff --git a/server/src/index.ts b/server/src/index.tsindex fd27f3c08..97ac98d96 100644--- a/server/src/index.ts+++ b/server/src/index.ts@@ -164,7 +164,7 @@ server.register(cors, {server.register(multipart, {limits: {- fileSize: IS_CLOUD ? 500 * 1024 * 1024 : undefined, // 500 MB for cloud, infinite for self-hosted+ fileSize: IS_CLOUD ? 500 * 1024 * 1024 : 50 * 1024 * 1024 * 1024, // 500 MB for cloud, 50 GB for self-hostedfiles: 1, // only allow 1 file},});