Add sample service for simple web federated client

This commit is contained in:
Reckless_Satoshi
2024-01-11 12:17:34 +00:00
parent c47647d7e9
commit c8006bf243
4 changed files with 47 additions and 0 deletions

0
web/.gitignore vendored Normal file
View File

23
web/docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: '3.9'
services:
robosats:
build: .
image: recksato/robosats-web:latest
container_name: robosats
restart: always
environment:
TOR_PROXY_IP: 127.0.0.1
TOR_PROXY_PORT: 9050
network_mode: service:tor
tor:
build: ../docker/tor
container_name: tor
restart: always
environment:
LOCAL_USER_ID: 1000
LOCAL_GROUP_ID: 1000
ports:
- 80:80
volumes:
- ./tor:/var/lib/tor
- ./torrc:/etc/tor/torrc

7
web/readme.md Normal file
View File

@ -0,0 +1,7 @@
# Host a RoboSat web client
This docker app is intended for hosting a web client for public use. Example the docker nginx server bundled with all static is built in https://github.com/RoboSats/robosats/tree/main/web
Works similarly to `/nodeapp`, but simpler. It does not use the selfhosted flags nor torify connections to coordinators. The browser itself must support Tor.
Drop your service vanity key into a new folder named `tor`, make sure the folder is named `roboweb` or edit the `torrc` accordingly.

17
web/torrc Normal file
View File

@ -0,0 +1,17 @@
Log notice file /var/log/tor/notices.log
## The directory for keeping all the keys/etc. By default, we store
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
DataDirectory /var/lib/tor
DataDirectoryGroupReadable 1
## Enable ControlPort
#ControlPort 9051
#CookieAuthentication 1
#CookieAuthFileGroupReadable 1
#CookieAuthFile /var/lib/tor/control_auth_cookie
# Robosats LND Testnet Onion Service
HiddenServiceDir /var/lib/tor/roboweb/
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:80