mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2025-08-10 03:50:10 +00:00
Merge branch 'RoboSats:main' into main
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
compose/env
|
/compose/env
|
||||||
|
/web/tor
|
@ -106,9 +106,11 @@ DEVFUND = 0.2
|
|||||||
# Coordinator activity limits
|
# Coordinator activity limits
|
||||||
MAX_PUBLIC_ORDERS = 100
|
MAX_PUBLIC_ORDERS = 100
|
||||||
|
|
||||||
# Trade limits in satoshis
|
# Coordinator Order size limits in Satoshi
|
||||||
MIN_TRADE = 20000
|
# Minimum order size (must be bigger than DB constrain in /robosats/settings.py MIN_TRADE, currently 20_000 Sats)
|
||||||
MAX_TRADE = 5000000
|
MIN_ORDER_SIZE = 20000
|
||||||
|
# Minimum order size (must be smaller than DB constrain in /robosats/settings.py MAX_TRADE, currently 5_000_000 Sats)
|
||||||
|
MAX_ORDER_SIZE = 500000
|
||||||
|
|
||||||
# For CLTV_expiry calculation
|
# For CLTV_expiry calculation
|
||||||
# Assume 8 min/block assumed
|
# Assume 8 min/block assumed
|
||||||
|
0
web/.gitignore
vendored
Normal file
0
web/.gitignore
vendored
Normal file
60
web/custom_nginx.conf
Normal file
60
web/custom_nginx.conf
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
daemon off;
|
||||||
|
|
||||||
|
user nginx;
|
||||||
|
worker_processes auto;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/error.log notice;
|
||||||
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
large_client_header_buffers 4 64K;
|
||||||
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
access_log /dev/stdout main;
|
||||||
|
error_log /dev/stderr warn;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
server_name robosats_web_client;
|
||||||
|
|
||||||
|
# Add your custom verify files by editing location and alias
|
||||||
|
location /clearnetonion_verify {
|
||||||
|
alias /serve_misc/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/src/robosats;
|
||||||
|
try_files $uri $uri/ /basic.html;
|
||||||
|
index basic.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /pro {
|
||||||
|
root /usr/src/robosats;
|
||||||
|
try_files $uri $uri/ /pro.html;
|
||||||
|
index pro.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /static/ {
|
||||||
|
alias /usr/src/robosats/static/;
|
||||||
|
autoindex on;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /favicon.ico {
|
||||||
|
alias /usr/src/robosats/static/assets/images/favicon-96x96.png;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
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
|
||||||
|
network_mode: service:tor
|
||||||
|
volumes:
|
||||||
|
- ./serve_misc:/serve_misc/
|
||||||
|
- ./custom_nginx.conf:/etc/nginx/nginx.conf
|
||||||
|
tor:
|
||||||
|
build: ../compose/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.
|
1
web/serve_misc/readme.md
Normal file
1
web/serve_misc/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
If you set up a clearnetonion.eu.org clearnet tunnel, you can drop in this folder you clearnetonion_verify_*.txt file.
|
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