This commit is contained in:
Mateusz Gruszczyński committed 2026-10-26 09:30:10 +01:00
1 parent b85201889e
commit b035648b81
21 files changed
+318 -73

No files matched your search

+7
View File
@@ -8,3 +8,10 @@
6. Run `systemctl daemon-reload && systemctl enable --now rustpad`.
Environment variables and an optional `.env` file override the YAML values. This allows secrets to be supplied by the service manager without editing the main configuration file.
To serve attachments from a separate domain, set `files_public_url` in `rustpad.yaml`.
The attachment-only listener uses `files_port: 3001` by default (same `app.host`).
Point the file subdomain's reverse proxy at that port; no path-based access
restrictions are needed. `/health` (and `/healthz`) returns `ok` on the file listener
for health monitoring. Without `files_public_url`, files use `app.port` and
no separate listener starts.
+4 -1
View File
@@ -9,8 +9,11 @@ database:
static_dir: /opt/rustpad/static
files_dir: /var/lib/rustpad/files
# Optional; bare domains are normalized to HTTPS. Serve or proxy /f/* there.
# Optional: when set, a second listener serves only /f/* attachments.
# The separate file listener defaults to port 3001 (and shares app.host).
# When unset, files stay on app.port and files_port is ignored.
# files_public_url: files.note.example.org
# files_port: 3001
storage_driver: local
upload_max_size_mb: 20
guest_upload_enabled: false