diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/web/docker-compose.yml b/web/docker-compose.yml new file mode 100644 index 0000000..0cd9138 --- /dev/null +++ b/web/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/web/readme.md b/web/readme.md new file mode 100644 index 0000000..c5258a4 --- /dev/null +++ b/web/readme.md @@ -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. \ No newline at end of file diff --git a/web/torrc b/web/torrc new file mode 100644 index 0000000..27d80d2 --- /dev/null +++ b/web/torrc @@ -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 \ No newline at end of file