diff --git a/apps/registry.json b/apps/registry.json index 0d7250f..5ab56c0 100644 --- a/apps/registry.json +++ b/apps/registry.json @@ -271,15 +271,15 @@ "id": "samourai-server", "category": "Wallet Servers", "name": "Samourai Server", - "version": "1.9.0", + "version": "1.10.1", "tagline": "Your private backing server for Samourai Wallet", - "description": "Samourai Server is an exclusive Umbrel app that runs Samourai Dojo and Whirlpool backing servers, and provides you easy step-by-step instructions to connect your Samourai Wallet to them. Samourai Wallet is unrivaled in transaction privacy, but its default configuration is still subject to network level privacy loss.\n\nBy default, Samourai Wallet will connect to its centrally controlled Dojo hosted in Iceland. By hosting your own Samourai Server, you can bypass its servers completely when using Samourai Wallet or Sentinel, and gain total financial sovereignty without any complexity.", + "description": "Samourai Server is an exclusive Umbrel app that runs Samourai Dojo and Whirlpool backing servers, and provides you easy step-by-step instructions to connect your Samourai Wallet to them. Samourai Wallet is unrivaled in transaction privacy, but its default configuration is still subject to network level privacy loss.\n\nBy default, Samourai Wallet will connect to its centrally controlled Dojo hosted in Iceland. By hosting your own Samourai Server, you can bypass its servers completely when using Samourai Wallet or Sentinel, and gain total financial sovereignty without any complexity.\n\nBundles Whirlpool CLI v0.10.11.", "developer": "Samourai", "website": "https://samouraiwallet.com", "dependencies": [ "bitcoind" ], - "repo": "https://github.com/louneskmt/umbrel-samourai-dojo/tree/v1.9.0-umbrel", + "repo": "https://github.com/louneskmt/umbrel-samourai-dojo/tree/v1.10.1-umbrel", "support": "https://t.me/SamouraiWallet", "port": 3005, "gallery": [ @@ -287,7 +287,7 @@ "2.jpg", "3.jpg" ], - "path": "/connect/", + "path": "", "defaultPassword": "" }, { diff --git a/apps/samourai-server/docker-compose.yml b/apps/samourai-server/docker-compose.yml index 3505446..5aa963b 100644 --- a/apps/samourai-server/docker-compose.yml +++ b/apps/samourai-server/docker-compose.yml @@ -22,7 +22,7 @@ services: ipv4_address: $APP_SAMOURAI_SERVER_DB_IP node: - image: louneskmt/dojo-nodejs:1.9.0@sha256:fbef514d55dd848e038f9852e5b5146f18675c7c207e6370fb9f54d0fd6eb6ce + image: louneskmt/dojo-nodejs:1.10.1@sha256:d1460df18df091837718fcd0a6d3850e2f1a4a49da5914a697648c40d5477184 init: true restart: on-failure command: "/home/node/app/wait-for-it.sh db:3306 --timeout=720 --strict -- /home/node/app/restart.sh" @@ -30,9 +30,10 @@ services: environment: # GLOBAL COMMON_BTC_NETWORK: $BITCOIN_NETWORK - DOJO_NODEJS_VERSION_TAG: 1.9.0 - TOR_PROXY_IP: $TOR_PROXY_IP - TOR_PROXY_PORT: $TOR_PROXY_PORT + DOJO_NODEJS_VERSION_TAG: 1.10.1 + NET_DOJO_TOR_IPV4: $TOR_PROXY_IP + NET_DOJO_TOR_PORT: $TOR_PROXY_PORT + NET_DOJO_MYSQL_IPV4: $APP_SAMOURAI_SERVER_DB_IP # MYSQL MYSQL_DATABASE: samourai-main @@ -85,12 +86,13 @@ services: ipv4_address: $APP_SAMOURAI_SERVER_NODE_IP whirlpool: - image: louneskmt/whirlpool:0.10.10@sha256:0914a0784a59819d55605e45b595b2715e5d1ed9b5aa5cd58db0fb068d8f6367 + image: louneskmt/whirlpool:0.10.11@sha256:a7cfb9e287aa5f2e4137a5d2fdddbfd348624e24e7dd7bed7fa0f4e2e22734d5 init: true restart: on-failure user: "1000:1000" command: - "--listen" + - "--cli.apiKey=$SAMOURAI_SERVER_WHIRLPOOL_API_KEY" - "--cli.api.http-enable=true" - "--cli.api.http-port=$APP_SAMOURAI_SERVER_WHIRLPOOL_PORT" - "--cli.tor=true" @@ -120,15 +122,19 @@ services: - ${APP_DATA_DIR}/nginx/wait-for:/wait-for - ${APP_DATA_DIR}/nginx/nginx.conf:/etc/nginx/nginx.conf - ${APP_DATA_DIR}/nginx/${BITCOIN_NETWORK}.conf:/etc/nginx/sites-enabled/dojo.conf + - ${APP_DATA_DIR}/nginx/connect.conf:/etc/nginx/sites-enabled/connect.conf - ${APP_DATA_DIR}/nginx/connect:/var/www/connect environment: COMMON_BTC_NETWORK: $BITCOIN_NETWORK - DOJO_HIDDEN_SERVICE: $APP_HIDDEN_SERVICE + DOJO_LOCAL_PORT: $APP_SAMOURAI_SERVER_DOJO_PORT + DOJO_HIDDEN_SERVICE: $SAMOURAI_SERVER_DOJO_HIDDEN_SERVICE WHIRLPOOL_HIDDEN_SERVICE: $SAMOURAI_SERVER_WHIRLPOOL_HIDDEN_SERVICE NODE_PREFIX_SUPPORT: support NODE_ADMIN_KEY: $SAMOURAI_SERVER_NODE_ADMIN_KEY + WHIRLPOOL_API_KEY: $SAMOURAI_SERVER_WHIRLPOOL_API_KEY ports: - - "$APP_SAMOURAI_SERVER_PORT:80" + - "$APP_SAMOURAI_SERVER_DOJO_PORT:80" + - "$APP_SAMOURAI_SERVER_CONNECT_PORT:8081" depends_on: - node networks: diff --git a/apps/samourai-server/mysql/mysql-dojo.cnf b/apps/samourai-server/mysql/mysql-dojo.cnf index 056d386..8409219 100644 --- a/apps/samourai-server/mysql/mysql-dojo.cnf +++ b/apps/samourai-server/mysql/mysql-dojo.cnf @@ -1,10 +1,11 @@ [mysqld] sql_mode="NO_ENGINE_SUBSTITUTION" +transaction_isolation=READ-COMMITTED performance_schema=off innodb_buffer_pool_size=128M innodb_buffer_pool_chunk_size=16M key_buffer_size=8M tmp_table_size=1M -max_connections=20 +max_connections=80 sort_buffer_size=1M query_cache_size=8M diff --git a/apps/samourai-server/nginx/connect.conf b/apps/samourai-server/nginx/connect.conf new file mode 100644 index 0000000..9cf5a44 --- /dev/null +++ b/apps/samourai-server/nginx/connect.conf @@ -0,0 +1,22 @@ +# Connect UI Configuration +server { + listen 8081; + server_name _; + + root /var/www/connect; + index index.html; + + # Proxy pairing endpoint to dojo api + location /v2/support/pairing { + proxy_pass http://node:8080/support/pairing; + } + + location /test/v2/support/pairing { + proxy_pass http://node:8080/support/pairing; + } + + # Server Connect UI static files + location / { + try_files $uri $uri/ =404; + } +} diff --git a/apps/samourai-server/nginx/connect/index.html b/apps/samourai-server/nginx/connect/index.html index bbbf0da..4d4586c 100644 --- a/apps/samourai-server/nginx/connect/index.html +++ b/apps/samourai-server/nginx/connect/index.html @@ -59,7 +59,7 @@
- If you need to access the Dojo Maintenance Tool, click here. + If you need to access the Dojo Maintenance Tool, click here.
Admin key:
@@ -76,11 +76,13 @@
Note: You'll need to open Whirlpool GUI and re-enter your password to continue mixing after restarting or updating your Umbrel.
- - + +