mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2026-02-11 09:10:26 +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: ""
|
||||||
@ -143,6 +143,17 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
network_mode: service:tor
|
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:
|
relay:
|
||||||
build:
|
build:
|
||||||
context: ./relay
|
context: ./relay
|
||||||
|
|||||||
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'
|
NODE_COLOR='#4126a7'
|
||||||
|
|
||||||
LND_AUTOUNLOCK_PWD='./env-sample/lndtn/lnd_autounlock_pwd'
|
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;
|
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; }
|
location = /favicon.ico { access_log off; log_not_found off; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,6 +83,15 @@ server {
|
|||||||
proxy_set_header Host $host;
|
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; }
|
location = /favicon.ico { access_log off; log_not_found off; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user