Documentation · Installing the server · Media upload keys

Media upload keys

Who can upload files to your media server and how to issue an upload key.

Media upload keys

The media server accepts uploads only with the server key: MEDIA_UPLOAD_KEY=required, the default for a new installation. Downloading is open. With open, anyone who has a nostr key can upload. A server installed before this setting existed stays open; to turn it on, run veydan-server media-key required, then veydan-server rerun.

Channel team members without the server get upload keys from the owner's app. Each key lets one person upload and delete their own files on your media server for up to 31 days, and nothing else. When a person loses their role, the app revokes the key.

On the server:

veydan-server upload-key <label> <pubkey hex> [days]   # a key for one person (30 days by default)
veydan-server upload-key revoke <label> <pubkey hex>   # revokes all keys issued to this person so far
veydan-server upload-key list                          # revoked keys

The label is 1 to 64 lowercase hex digits. The pubkey is 64 hex digits, not an npub. Days is from 1 to 31.