blossom-cloudron/README.md

63 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2024-11-04 15:09:32 +00:00
# 🌸 Blossom-server
2024-11-05 16:01:56 +00:00
[Blossom Server](https://git.nostrdev.com/stuff/blossom-cloudron) packaged to run as a [cloudron](https://www.cloudron.io/) app. Supports policies through the `/app/data/config.yaml` file.
2024-11-05 15:27:45 +00:00
2024-11-05 15:57:21 +00:00
The app is [not yet in the Cloudron App Store](https://forum.cloudron.io/topic/12741/blossom-server-package), so for now you have to use the Cloudron CLI to install.
2024-11-05 15:27:45 +00:00
### Prerequisites
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
Install the [Cloudron CLI](https://docs.cloudron.io/packaging/cli/) - `npm install -g cloudron`
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
### Installation
2024-11-04 15:09:32 +00:00
```
2024-11-05 15:27:45 +00:00
# Login with your cloudron credentials
cloudron login your.instance.com
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
# Clone the project and change into it
git clone https://git.nostrdev.com/stuff/blossom-cloudron
cd blossom-cloudron
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
# Install latest version
2024-11-05 15:47:58 +00:00
cloudron install --image git.nostrdev.com/stuff/blossom-cloudron:latest -l blossom.YOURDOMAIN.com
```
To update, the command would be:
```
cloudron update --app blossom.YOURDOMAIN.com --image git.nostrdev.com/stuff/blossom-cloudron:latest
2024-11-05 15:27:45 +00:00
```
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
## Configuration
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
The config file is under `/app/data/config.yml`
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
If you are using Blossom for a small subset of npubs, and don't need the discoverability feature, you could make the following changes:
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
```
discovery:
# find files by querying nostr relays
nostr:
enabled: false
2024-11-04 15:09:32 +00:00
```
2024-11-05 15:27:45 +00:00
and
2024-11-04 15:09:32 +00:00
```
2024-11-05 15:27:45 +00:00
rules:
# mime type of blob
- type: "*"
expiration: 2 years
pubkeys:
- "xxxnostrHEXkeyxxx" # comment
```
and
2024-11-04 15:09:32 +00:00
2024-11-05 15:27:45 +00:00
```
upload:
# only check rules that include "pubkeys"
requirePubkeyInRule: true
```