Repository navigation
dropbridge v0.4.0: disk guard, notifications, Portuguese, and link rules
Added
- Disk guard: an upload that would leave less than
--min-free-mb(default 1024 MiB, 0 switches it off) free is refused
with a plain "server is nearly full" message (HTTP 507). Room that unfinished uploads still need is counted, so many
parallel uploads cannot all pass. The disk is read through a bounded, cached probe, so a dropped network mount cannot
hang an upload start (it fails open) or the Network shares tab. Customers never see sizes. - The admin page shows free space for each shared folder and warns when uploads are being refused.
- Notifications: a webhook (Slack, Discord, ntfy or generic JSON) is told about uploads (batched per link), a link's first
opening, a full upload quota and low disk space. The address is a secret and is never stored, returned or logged; link
tokens are never sent; customer file names are neutralised per format. The admin page shows the status and can send a test. - Brazilian Portuguese (pt-BR) for the customer page and the admin: chosen from the browser's language list, switchable
from the page header and remembered. Numbers, dates, times and plurals follow the language; server messages a customer
can meet (quota, full disk, session ended, unavailable link) are translated by status code; the unavailable-link message
is still one text for unknown, withdrawn and expired links. All text lives inweb/src/lib/i18n/(one file per
language), with tests that keep the two in step. What stays English on purpose: the bug-report block on the About page,
the generated mount settings (they are configuration files), and the raw messages the server returns to the admin. - Links can carry a message for the customer, a list of accepted file types and a largest-single-file size (schema v7).
Refused uploads (415 wrong type, 413 too large) use no quota, leave no staging file and raise no alarms; the customer page
filters before queueing and says what is accepted. Copy invitation builds a ready-to-send text (never with the
password). Existing links are unchanged. - Docs: what to do when a network mount hangs (lazy unmount on the host, and why dropbridge does not do it).
Get it
docker pull ghcr.io/doccaz/dropbridge:0.4.0
The signed tag v0.4.0 is the source of this release. See the README and the full changelog.