- Svelte 44.3%
- Go 38.3%
- Python 10.7%
- Shell 3.2%
- TypeScript 2.1%
- Other 1.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .github/workflows | ||
| cmd/main | ||
| demo-files | ||
| deploy | ||
| internal | ||
| screenies | ||
| scripts | ||
| secrets | ||
| webui | ||
| .dockerignore | ||
| .env.example | ||
| .env.hub.example | ||
| .gitignore | ||
| CHANGELOG.md | ||
| docker-compose.hub.yml | ||
| docker-compose.npm.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.en.md | ||
| README.md | ||
| setup.sh | ||
| start-dumango.sh | ||
Dumango FileCloud
Modern self-hosted file server — Go backend, SvelteKit frontend, Docker Compose.
Beta status: Dumango FileCloud is currently in beta. Minor bugs may still occur. Feedback is very welcome — we work daily on improvements and bugfixes.
🇩🇪 Deutsche Version: README.md
☕ Support
If Dumango FileCloud is useful to you and you'd like to support development:
- PayPal: https://paypal.me/goozerin
Matching Android app: dumangofilecloud_android on git.dumango.com
Use it to access your existing Dumango FileCloud comfortably on your smartphone.
|
|
|
|
|
|
Click on any image to view full size
⚡ Quick Start
Option 0: Setup Wizard — recommended for beginners
The simplest path: one command, the rest is guided through a browser wizard.
./setup.sh
The wizard opens automatically in your browser and walks you through:
- System check — Docker, Docker Compose, write permissions and internet access are checked automatically. Any missing dependencies are clearly named. Existing files, secrets, containers and volumes are detected here as well.
- Choose mode — Quick Start (minimal questions, safe defaults) or Advanced Setup (full control over URL, ports, admin account).
- Basic settings — Instance name (at least 3 characters) and office features.
- Access — Demo admin (start immediately) or create your own admin account. A custom admin password needs at least 12 characters including upper- and lowercase letters and a digit.
- Network — Built-in Caddy or external reverse proxy, domain, ports. The chosen ports are validated here and ports already in use are rejected.
- Summary — Review all settings, then start the setup.
- Start — Docker images are built, containers started, login URL is displayed.
The wizard automatically creates .env, all secrets, and the required folders. Existing installations are detected and never overwritten without your explicit confirmation. If an existing installation is found, you can choose to update it (keep data) or wipe it completely and reinstall from scratch. A draft can be saved at any time and resumed later.
If setup.sh is started more than once by accident, it reopens the existing wizard instead of creating extra background processes or additional ports. Stale old wizard processes are cleaned up automatically on the next start.
Language: The wizard automatically detects your system language (LANG/LC_ALL). To force English: DUMANGO_LANG=en ./setup.sh. A DE/EN toggle is also available in the browser at any time.
Requirements:
- Python 3.7 or newer (usually pre-installed)
- Docker and Docker Compose are checked by the wizard — if Docker is missing, it offers to install it
Existing power-user paths remain fully intact — Option A and Option B below continue to work unchanged.
Option A: Build from this repository (recommended for source installs)
What you need to download and upload to the server
For a source installation you need the entire repository.
The easiest path:
- Download the repository as ZIP or clone it with
git clone. - Upload the full
DumangoFilecloud/folder to your server. - Change into that folder on the server.
1. Get the repository
git clone https://git.dumango.com/msdong/DumangoFilecloud.git
cd DumangoFilecloud
Or download the ZIP, extract it, and then change into the extracted folder.
2. Create .env
cp .env.example .env
3. Start
With built-in Caddy:
make start
Without Caddy, but for Nginx Proxy Manager / external reverse proxy:
make start-npm
This automatically starts:
- Dumango FileCloud
- PostgreSQL
- MinIO
- ONLYOFFICE
- Caddy (only with
make start)
If you want to see the available commands:
make help
Or without make with Caddy:
chmod +x scripts/setup-secrets.sh && ./scripts/setup-secrets.sh --auto
docker compose up -d --build
Or without make for Nginx Proxy Manager / an external reverse proxy:
chmod +x scripts/setup-secrets.sh && ./scripts/setup-secrets.sh --auto
docker compose -f docker-compose.yml -f docker-compose.npm.yml up -d --build
Alternatively, use the small wrapper that calls the same Compose paths:
./start-dumango.sh # with built-in Caddy
./start-dumango.sh npm # without Caddy for NPM / external reverse proxy
Updating existing Docker installs
For existing installations, the update flow is now intentionally simple:
git pull
docker compose pull
docker compose up -d
For Docker Hub installs using docker-compose.hub.yml:
docker compose -f docker-compose.hub.yml pull
docker compose -f docker-compose.hub.yml up -d
If secrets/onlyoffice_jwt_secret.txt is still missing in an older installation, the update still starts cleanly. Dumango and ONLYOFFICE automatically derive the same separate JWT key from session_secret.txt until an optional dedicated onlyoffice_jwt_secret.txt is added later. No manual fix is required.
Important about CSP / nonce:
- Dumango generates the required Content Security Policy itself.
- This works in all installation paths:
make start,make start-npm, source install with Caddy, source install with an external proxy, and Docker Hub install. - In Caddy, Nginx Proxy Manager, Nginx, or Cloudflare, do not manually override the
Content-Security-Policyheader. - If a reverse proxy forces its own CSP, the login page, theme bootstrap, Svelte startup, or Cloudflare challenge can be blocked.
3. Open in browser → http://localhost:18080
Option B: Install prebuilt images from Docker Hub
What to download
Create an empty folder, for example dumango-dockerhub/, and download these files into it:
docker-compose.hub.yml.env.hub.examplescripts/setup-secrets.sh- the full
secrets/folder with all*.txt.templatefiles - optional
scripts/sync-db-password.sh(only needed for password-mismatch troubleshooting)
These files are enough for a Docker Hub installation. You do not need the full repository for that.
The directory should look like this:
dumango-dockerhub/
├── docker-compose.hub.yml
├── .env.hub.example
├── scripts/
│ └── setup-secrets.sh
└── secrets/
├── db_user.txt.template
├── db_password.txt.template
├── session_secret.txt.template
└── ...
Step by step
- Change into that folder.
- Copy
.env.hub.exampleto.env. - Generate the secrets.
- Start the containers.
cd dumango-dockerhub
cp .env.hub.example .env
chmod +x scripts/setup-secrets.sh
./scripts/setup-secrets.sh --auto
docker compose -f docker-compose.hub.yml up -d
Quick flow (Option B, beginner-friendly and chronological):
mkdir dumango-dockerhub && cd dumango-dockerhub- Download required files (
docker-compose.hub.yml,.env.hub.example,scripts/setup-secrets.sh,secrets/*.txt.template) cp .env.hub.example .envchmod +x scripts/setup-secrets.sh && ./scripts/setup-secrets.sh --autodocker compose -f docker-compose.hub.yml up -d- Open
http://localhost:18080 - Change default credentials immediately after first login
If a previous failed start happened in the same folder and you want a clean re-install:
docker compose -f docker-compose.hub.yml down -v --remove-orphans
On first start, Dumango automatically creates:
- all required secret files in
secrets/ - an installation-specific PostgreSQL user in
secrets/db_user.txt - an installation-specific PostgreSQL password in
secrets/db_password.txt - Docker volumes for PostgreSQL, MinIO, and app data
- the demo account for first login
scripts/setup-secrets.sh now generates unique DB credentials per installation for new setups. In a full repository checkout, the script also replaces unchanged bundled DB defaults with fresh secure values on first setup, so multiple installations do not share the same database user or password.
PostgreSQL, MinIO, and ONLYOFFICE are already included here.
The Docker Hub path is controlled via .env:
DUMANGO_IMAGE_REPO=goozerin564/dumango-filecloud
DUMANGO_POSTGRES_IMAGE_REPO=goozerin564/dumango-filecloud-postgres
DUMANGO_TAG=latest
For a normal installation, you usually do not need to change these values.
A demo account is created automatically on first start. Credentials appear directly on the login page:
| Field | Value |
|---|---|
[email protected] |
|
| Password | Demo1234 |
⚠️ Change email and password immediately in Settings → Profile after first login!
The demo credentials are shown on the login page only while the default admin account is still unchanged. As soon as an admin saves a new email or password in settings, the demo box disappears automatically.
Start the Docker Hub image directly via local port
The Docker Hub stack from docker-compose.hub.yml does not include built-in Caddy. It publishes the main app directly on APP_PORT and ONLYOFFICE on ONLYOFFICE_PORT.
- Download the files as described above.
- Run the four commands from the step-by-step block.
- Open
http://localhost:18080. - Log in with the demo account.
If port 18080 or 8082 is already in use on your system, change .env for example to:
APP_PORT=28080
APP_URL=http://localhost:28080
ONLYOFFICE_PORT=28082
ONLYOFFICE_PUBLIC_URL=http://localhost:28082
Then open Dumango at http://localhost:28080.
Start the Docker Hub image behind Nginx Proxy Manager (NPM)
Use this path if Dumango should run behind your domain, for example https://cloud.yourdomain.com.
The simplest and recommended setup is:
- one public URL for everything:
https://cloud.yourdomain.com - ONLYOFFICE is then available under:
https://cloud.yourdomain.com/onlyoffice
Set .env like this:
APP_PORT=18080
APP_URL=https://cloud.yourdomain.com
ONLYOFFICE_PORT=18082
ONLYOFFICE_PUBLIC_URL=https://cloud.yourdomain.com/onlyoffice
Important about ONLYOFFICE port mapping:
- If NPM custom location points to
dumangofilecloud-onlyoffice-1:80, that is correct. ONLYOFFICE_PORTin.envthen controls only the optional local host bind (127.0.0.1:<PORT>), not the internal NPM container target.
Then start normally:
cp .env.hub.example .env
chmod +x scripts/setup-secrets.sh
./scripts/setup-secrets.sh --auto
docker compose -f docker-compose.hub.yml up -d
If your NPM itself runs as a Docker container and should route by container name instead of host port, also connect both containers to the NPM network, for example:
docker network connect npm_default dumangofilecloud-webgui
docker network connect npm_default dumango-dockerhub-onlyoffice-1
Then create one Proxy Host in NPM for cloud.yourdomain.com:
NPM WebGUI – Tab "Details":
| Field | Value |
|---|---|
| Domain Names | cloud.yourdomain.com |
| Scheme | http |
| Forward Hostname / IP | dumangofilecloud-webgui |
| Forward Port | 8080 |
| Websockets Support | ✅ enable |
NPM WebGUI – Tab "Custom Locations":
Click Add Location:
| Field | Value |
|---|---|
| Location | /onlyoffice |
| Scheme | http |
| Forward Hostname / IP | dumangofilecloud-onlyoffice-1 |
| Forward Port | 80 |
NPM WebGUI – Tab "Advanced" (required for WebSocket support and correct path routing):
Paste this code:
location /onlyoffice {
proxy_pass http://dumangofilecloud-onlyoffice-1:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Prefix /onlyoffice;
# WebSocket support for ONLYOFFICE
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
rewrite ^/onlyoffice/(.*) /$1 break;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
# Route ONLYOFFICE internal cache files directly to the ONLYOFFICE container
location /cache/files/ {
proxy_pass http://dumangofilecloud-onlyoffice-1:80/cache/files/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
# Route ONLYOFFICE document API and WebSocket directly
location /doc/ {
proxy_pass http://dumangofilecloud-onlyoffice-1:80/doc/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
X-Forwarded-Prefix /onlyofficetells ONLYOFFICE which path it runs under — without this header ONLYOFFICE generates internal URLs without the prefix, which get routed to the wrong container./cache/files/and/doc/must be forwarded directly to the ONLYOFFICE container — otherwise these requests reach the app container and ONLYOFFICE shows "Content does not match file extension".- Do not set or override your own CSP in the proxy.
- WebSockets must be enabled — ONLYOFFICE uses WebSocket connections for real-time updates and collaboration.
If you prefer two public hosts, that works too:
APP_PORT=18080
APP_URL=https://cloud.yourdomain.com
ONLYOFFICE_PORT=18082
ONLYOFFICE_PUBLIC_URL=https://office.yourdomain.com
Then use in NPM:
cloud.yourdomain.com→127.0.0.1:18080office.yourdomain.com→127.0.0.1:18082
If NPM itself runs as a Docker container, use container names on the shared Docker network instead of 127.0.0.1:
cloud.yourdomain.com→dumangofilecloud-webgui:8080office.yourdomain.com→dumangofilecloud-onlyoffice-1:80
After the first login, also set the public app URL in Settings → System so WebDAV addresses and share links use the correct external URL.
Important for Docker Hub images:
docker-compose.hub.ymlnow exports Docker secrets into regular environment variables before the app starts.- This is intentional so published images also work when they do not resolve
*_FILEvariables on their own. - The
encryption_keyis also copied to a file readable by the app user at startup, so email/metadata encryption is reliably enabled. - The custom Postgres image now reconciles the application role password with
secrets/db_password.txton every startup for existing volumes, so installs and updates do not get stuck on stale Postgres credentials. scripts/setup-secrets.shnow generates new DB credentials per installation instead of relying on a shared fixed PostgreSQL user.
Troubleshooting: password authentication failed for user "<db_user>" (SQLSTATE 28P01)
This almost always means the existing Postgres volume still has an old password, while secrets/db_password.txt has been regenerated.
With current images/current repository state, this is repaired automatically when the Postgres container starts. If you still see it, you are usually running an older Postgres image or a partially updated stack.
Quick fix without data loss:
# Docker Hub install:
./scripts/sync-db-password.sh -f docker-compose.hub.yml
# Source install (make start / docker-compose.yml):
./scripts/sync-db-password.sh -f docker-compose.yml
Full rebuild (deletes all Dumango data):
docker compose -f docker-compose.hub.yml down -v --remove-orphans
./scripts/setup-secrets.sh --auto
docker compose -f docker-compose.hub.yml up -d
✨ Features
File Management
- Upload & download up to 5 GB — S3 multipart upload, auto-selected, minimal RAM usage
- Real-time progress bar · Upload multiple files & entire folders at once
- Conflict detection: overwrite / keep both / skip — with "apply to all" option
- Download folders as ZIP · Image & PDF preview with thumbnails
- File versioning: automatic version saved on overwrite — restore any version at any time
- Office editor (ONLYOFFICE) for DOCX, XLSX, PPTX, ODT, ODS, ODP and more
- Colored folder tags · Multi-select & batch actions · Trash (soft-delete)
- Folder locking (write protection)
WebDAV — Mount as network drive
- Connect via Windows Explorer, macOS Finder, Linux file managers, Cyberduck, rclone
- App-token authentication — no main password transmitted
- Token management in Settings → WebDAV (create, rename, delete)
- Last-used timestamp visible per token
Sharing & Permissions
- Share links with password, expiry date, download limit & internal notes
- 3-tab share modal: General · Permissions · Advanced
- Public share page with comment feature for external recipients
- Internal shares to users/groups with read/write permissions
- Access statistics per share
🔒 File Encryption
- Hybrid encryption with AES-256-GCM for maximum security
- Individual files/folders encrypt via right-click or bulk selection
- Global encryption enable in settings
- Automatic encryption of new uploads possible
- User-specific DEKs (Data Encryption Keys) with scrypt key derivation
- No master keys stored in plaintext — full control over your data
Authentication & Security
- Multi-factor auth: Email + password (Argon2id) · WebAuthn / Passkeys / YubiKey (FIDO2) · TOTP 2FA
- Brute-force protection: Account lockout after 5 failed attempts (15min) with IP tracking
- CSP nonce-based: Cryptographic nonces instead of
'unsafe-inline'— prevents XSS attacks - Session management: Admin-configurable duration (1h-7d, default: 24h)
- Login monitoring: New IP addresses tracked in audit log for admins
- Cloudflare Turnstile CAPTCHA (optional) · Rate limiting · JWT with server-side revocation
- HttpOnly cookies · SameSite=Lax · Security headers (HSTS, CSP, Permissions-Policy)
User Interface
- Dark mode / Light mode · Bilingual: German 🇩🇪 + English 🇬🇧
- Left sidebar: real-time search (name + full-text in TXT/PDF), folder tree, favorites, shares, trash
- List & grid view with automatic infinite scroll
- Details sidebar: metadata, activity log, comments, versions, sharing
- Navigation state saved via URL hash — persists across page reloads
Administration
- User management: create, edit, quota, password reset, activate/deactivate
- Invitation system: single-use link (48h TTL, optionally email-bound)
- Audit log with filter & pagination · Group management
- SMTP: configure mail server directly in Settings + send test email
- Branding: server name, logo, favicon, login background — all customizable
- Public app URL setting — important for reverse proxies (Caddy, NPM); affects WebDAV URL and share links
- Forgot password: reset link via email (requires SMTP)
🖥️ Requirements
- Docker + Docker Compose installed
- Linux, NAS, or VM
linux/amd64andlinux/arm64for the Dumango app image- Recommended: 2 vCPU, 4 GB RAM
- With ONLYOFFICE: 4 vCPU, 8 GB RAM recommended
🐳 Docker Containers
| Container | Function |
|---|---|
dumango-caddy |
Reverse proxy (HTTP/HTTPS) |
dumango-filecloud |
Main application (API + WebUI) |
dumango-postgres |
PostgreSQL 16 (metadata) |
dumango-minio |
MinIO S3 (file storage) |
dumango-onlyoffice |
Office editor on port 8082 |
🌐 Reverse Proxy
Caddy (default, built-in)
- Local:
http://localhost:18080/ HTTPS:https://localhost:8443 - With a domain: set
APP_DOMAIN=cloud.yourdomain.comin.env+ expose ports 80/443
Concrete .env values (if 8080 is already occupied):
HTTP_PORT=18080
HTTPS_PORT=18443
APP_URL=http://localhost:18080
Nginx Proxy Manager (NPM)
make start-npm
Concrete .env values (if 8080 is already occupied):
APP_PORT=18080
APP_URL=https://cloud.yourdomain.com
ONLYOFFICE_PORT=18082
ONLYOFFICE_PUBLIC_URL=https://office.yourdomain.com
Recommended NPM targets:
- Main app:
127.0.0.1:18080 - ONLYOFFICE:
127.0.0.1:18082
Variant with one shared host cloud.yourdomain.com instead of a separate office host:
APP_URL=https://cloud.yourdomain.comONLYOFFICE_PUBLIC_URL=https://cloud.yourdomain.com/onlyoffice
NPM WebGUI – Tab "Details":
| Field | Value |
|---|---|
| Domain Names | cloud.yourdomain.com |
| Scheme | http |
| Forward Hostname / IP | dumangofilecloud-webgui |
| Forward Port | 8080 |
| Websockets Support | ✅ enable |
NPM WebGUI – Tab "Custom Locations":
| Field | Value |
|---|---|
| Location | /onlyoffice |
| Scheme | http |
| Forward Hostname / IP | dumangofilecloud-onlyoffice-1 |
| Forward Port | 80 |
NPM WebGUI – Tab "Advanced":
location /onlyoffice {
proxy_pass http://dumangofilecloud-onlyoffice-1:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Prefix /onlyoffice;
# WebSocket support for ONLYOFFICE
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
rewrite ^/onlyoffice/(.*) /$1 break;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
# Route ONLYOFFICE internal cache files directly to the ONLYOFFICE container
location /cache/files/ {
proxy_pass http://dumangofilecloud-onlyoffice-1:80/cache/files/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
# Route ONLYOFFICE document API and WebSocket directly
location /doc/ {
proxy_pass http://dumangofilecloud-onlyoffice-1:80/doc/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
NPM Advanced Config for the main app:
client_max_body_size 5120m;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_request_buffering off;
Note about port 9000: MinIO runs internally at minio:9000 and is not published to the host in the default compose setup.
For custom domains: secrets/webauthn_origin.txt → https://cloud.yourdomain.com
Tip: After proxy setup, set the public app URL in Settings → System so that WebDAV addresses and share links display the correct external URL.
⚙️ Configuration
All settings via Docker Secrets (files in secrets/) — never committed to git.
Local runtime data such as avatars, logos, login backgrounds, uploads and databases live under data/ or Docker volumes and are intentionally excluded from the repository via .gitignore. Public logo/background assets in the repo are placeholders under webui/static/.
| File | Description |
|---|---|
db_password.txt |
PostgreSQL password |
minio_secret_key.txt |
MinIO secret key |
session_secret.txt |
JWT signing key |
encryption_key.txt |
Base64 encryption key for email/metadata encryption |
webauthn_origin.txt |
WebAuthn origin (full URL) |
Full list: secrets/README.md
🛠️ Development
# Backend (Go)
go run ./cmd/main
# Frontend (SvelteKit dev server)
cd webui && npm install && npm run dev
📄 License
Dumango FileCloud is free and open-source software licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later) — see LICENSE.
Copyright © 2026 Andreas Stammer.
- You may freely use, study, modify and redistribute the software — including commercially.
- If you run a modified version as a network service for others, you must offer the complete source code of your version to those users under the same license (AGPL §13).
- The matching Android app is also licensed under AGPL-3.0-or-later: dumangofilecloud_android.
- Source files carry SPDX headers (
SPDX-License-Identifier: AGPL-3.0-or-later). Bundled third-party components keep their own licenses (e.g. Go modules, npm packages, ONLYOFFICE Document Server as a separate container).