mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2025-08-01 07:32:16 +00:00
Add sample service for simple web federated client
This commit is contained in:
0
web/.gitignore
vendored
Normal file
0
web/.gitignore
vendored
Normal file
23
web/docker-compose.yml
Normal file
23
web/docker-compose.yml
Normal 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
7
web/readme.md
Normal 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
17
web/torrc
Normal 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
|
Reference in New Issue
Block a user