feat(img): added blossom server configs

This commit is contained in:
keshav0479
2026-01-19 20:38:15 +05:30
parent 52d0d8b7a9
commit b5073c2d44
6 changed files with 84 additions and 2 deletions

View File

@ -0,0 +1,45 @@
# Blossom Server Configuration for RoboSats
publicDomain: ""
databasePath: data/sqlite.db
dashboard:
enabled: false
username: "admin"
# Storage config
storage:
backend: "local"
removeWhenNoOwners: false
local:
dir: "./data/blobs"
# keep encrypted images for 30 days
rules:
- type: "application/octet-stream" # no recognizable type
expiration: "30 days"
- type: "*"
expiration: "30 days"
# (BUD-02)
upload:
enabled: true
requireAuth: true # BUD-01/02 Nostr auth
requirePubkeyInRule: false
# No need for media optimization
media:
enabled: false
requireAuth: true
requirePubkeyInRule: false
# (BUD-04) - disabled for privacy
list:
requireAuth: true
allowListOthers: false
# already behind Tor via service:tor
tor:
enabled: false
proxy: ""

View File

@ -130,7 +130,7 @@ services:
- redis
network_mode: service:tor
celery-beat:
celery-beat:
image: recksato/robosats:${ROBOSATS_TAG:-v0.6.0-alpha@sha256:8cc975ff5942a3fb2a09827b8eaafebea1c851eb3ecf9be1aaac1f238cfa9fc1}
container_name: beat${SUFFIX}
restart: always
@ -143,6 +143,17 @@ services:
- redis
network_mode: service:tor
blossom:
image: ghcr.io/hzrd149/blossom-server:master
container_name: blossom${SUFFIX}
restart: always
environment:
PORT: 3006
volumes:
- ${BLOSSOM_CONFIG:?}:/app/config.yml:ro
- ${BLOSSOM_DATA:?}:/app/data
network_mode: service:tor
relay:
build:
context: ./relay
@ -173,6 +184,6 @@ services:
- ${BU_DIR1}:/backup1:rw
- ${BU_DIR2}:/backup2:rw
- ${BU_DIR3}:/backup3:rw
volumes:
redisdata:

View File

@ -0,0 +1,4 @@
# Blossom server
BLOSSOM_CONFIG=./blossom/config.yml
BLOSSOM_DATA=./blossom_data_mn

View File

@ -75,3 +75,7 @@ NODE_ALIAS='🤖RoboSats⚡(Testnet)'
NODE_COLOR='#4126a7'
LND_AUTOUNLOCK_PWD='./env-sample/lndtn/lnd_autounlock_pwd'
# Blossom server
BLOSSOM_CONFIG=./blossom/config.yml
BLOSSOM_DATA=/custom_path/testnet/blossom_data

View File

@ -92,6 +92,15 @@ server {
proxy_set_header Host $host;
}
location /blossom/ {
proxy_pass http://127.0.0.1:3006/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 10M;
}
location = /favicon.ico { access_log off; log_not_found off; }
}

View File

@ -83,6 +83,15 @@ server {
proxy_set_header Host $host;
}
location /blossom/ {
proxy_pass http://127.0.0.1:3006/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 10M;
}
location = /favicon.ico { access_log off; log_not_found off; }
}