aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 8df418c..47bdfc7 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Private Drop
-A small, dependency-free web application for anonymous single-image submissions. It accepts JPG, PNG, and HEIC files up to 10 MiB, verifies the file signature, replaces the original filename, and stores the image outside the HTTP-served directory.
+A small, dependency-free web application for private single-image submissions. It collects the submitter's amateur radio callsign, name, email address, and a brief file description. It accepts JPG, PNG, and HEIC files up to 10 MiB, verifies the file signature, replaces the original filename, and stores the image outside the HTTP-served directory. The submission details are stored in a UTF-8 `.txt` sidecar with the same private basename as the image.
Upload forms are available only at named, single-segment targets listed in `allowed-uris.txt`, such as `/logo-contest` or `/911u19jasdl`. Blank lines and lines beginning with `#` are ignored. The bare `/` path is rejected with HTTP 418. Each target stores its submissions in a separate private directory beneath the configured upload directory.
@@ -20,7 +20,7 @@ For production, choose a private directory on a persistent disk and bind to the
UPLOAD_DIR=/var/lib/blind-uploader/uploads HOST=0.0.0.0 PORT=8000 python3 server.py
```
-The service creates the upload directory with mode `0700` and each image with mode `0600`. The process user needs write access to `UPLOAD_DIR`.
+The service runs as `www-data:www-data`. The installer makes the upload directory private to that account with mode `0700`; each stored image and metadata sidecar is created with mode `0600`.
## Test
@@ -46,7 +46,8 @@ To install the application, systemd unit, and nginx configuration in one step, r
sudo make install DOMAIN=upload.example.com
```
-This validates the nginx configuration before starting the service and reloading nginx. It requires Python 3, systemd, nginx, `make`, and standard Unix installation tools to already be installed. The generated nginx configuration is `/etc/nginx/conf.d/blind-uploader.conf`. The URI allowlist is installed at `/etc/blind-uploader/allowed-uris`; subsequent installs preserve that file so local URI changes are not overwritten.
+This validates the nginx configuration before starting the service and reloading nginx. It requires Python 3, systemd, nginx, `make`, Debian's `www-data` account, and standard Unix installation tools to already be installed. For `DOMAIN=upload.example.com`, the generated nginx configuration is `/etc/nginx/sites-available/upload.example.com`. Subsequent installs preserve both that nginx configuration and the URI allowlist at `/etc/blind-uploader/allowed-uris`, so local changes are not overwritten.
+Re-running the installer restarts the service so updated server code takes effect.
To run the test suite without installing anything:
@@ -63,7 +64,7 @@ sudo systemctl enable --now blind-uploader.service
sudo systemctl status blind-uploader.service
```
-The unit uses systemd's `DynamicUser` and `StateDirectory` features, so no permanent application user or manual data-directory setup is needed. Optional overrides can be placed in Debian's standard `/etc/default/blind-uploader` environment file, for example:
+The unit runs as Debian's existing `www-data:www-data` account and uses systemd's `StateDirectory` feature for private writable storage. Application files remain root-owned and read-only to the daemon. The URI allowlist is root-owned, group-readable by `www-data`, and otherwise private. Optional overrides can be placed in Debian's standard `/etc/default/blind-uploader` environment file, for example:
```ini
PORT=8080