mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2026-01-27 08:45:40 +00:00
feat(img): added blossom server configs
This commit is contained in:
45
compose/blossom/config.yml
Normal file
45
compose/blossom/config.yml
Normal 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: ""
|
||||
@ -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:
|
||||
|
||||
4
compose/env-sample/lndmn/.env
Normal file
4
compose/env-sample/lndmn/.env
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
# Blossom server
|
||||
BLOSSOM_CONFIG=./blossom/config.yml
|
||||
BLOSSOM_DATA=./blossom_data_mn
|
||||
@ -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
|
||||
|
||||
@ -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; }
|
||||
|
||||
}
|
||||
|
||||
@ -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; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user