Skip to content

Commit

Permalink
Add ItchySats App
Browse files Browse the repository at this point in the history
  • Loading branch information
1010Tom committed Dec 28, 2021
1 parent 9f34ed7 commit 8beafdc
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
Empty file added apps/itchysats/data/.gitkeep
Empty file.
20 changes: 20 additions & 0 deletions apps/itchysats/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.7"

services:
web:
image: ghcr.io/itchysats/itchysats/taker:0.3.0@sha256:89adbae24d5c36c2516357b1267fc8f0c8fed59f99dc3c07b75617685ef525c5
restart: on-failure
stop_grace_period: 1m
ports:
- ${APP_ITCHYSATS_PORT}:8000
volumes:
- ${APP_DATA_DIR}/data:/data
command:
- --maker=mainnet.itchysats.network:9999
- --maker-id=7e35e34801e766a6a29ecb9e22810ea4e3476c2b37bf75882edf94a68b1d9607
- mainnet
- --electrum=tcp://$ELECTRUM_IP:$ELECTRUM_PORT

networks:
default:
ipv4_address: $APP_ITCHYSATS_IP
23 changes: 23 additions & 0 deletions apps/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,5 +657,28 @@
],
"path": "",
"defaultPassword": ""
},
{
"id": "itchysats",
"category": "Finance",
"name": "ItchySats",
"version": "v0.3.0",
"tagline": "Peer-2-peer derivatives on Bitcoin",
"description": "ItchySats enables peer-2-peer CFD trading on Bitcoin using DLCs (discreet log contracts). No account needed, no trusted third-party - just you and your keys.\n\nThis is beta software. We tested it on test- and mainnet, but there are no guarantees that it will always behave as expected.\nPlease be mindful with how much money you trust the application with.\nCFDs trading is inherently risky, be sure to read up on it before using this application.\n\nThat said: This is pretty awesome, go nuts!\n\n1. Fund the ItchySats wallet\n2. Open a position\n3. Watch the price go up\n4. Profit\n\nLimitations of the mainnet beta:\n\n1. You can only open long positions at the moment\n2. Minimum position quantity is $100, maximum $1000\n3. CFDs period ends after 7 days - perpetual positions are in the making :)\n4. The leverage is fixed at 2\n\nWe are woking hard on perpetual positions and allowing sell positions.\nUpdate to be expected soon!",
"developer": "ItchySats",
"website": "https://itchysats.network",
"dependencies": [
"electrum"
],
"repo": "https://github.com/itchysats/itchysats",
"support": "https://github.com/itchysats/itchysats/issues",
"port": 7113,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultPassword": ""
}
]
5 changes: 4 additions & 1 deletion scripts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ APP_SPHINX_RELAY_PORT="3300"
APP_RIDE_THE_LIGHTNING_IP="10.21.21.15"
APP_RIDE_THE_LIGHTNING_PORT="3001"
APP_RIDE_THE_LIGHTNING_LOOP_IP="10.21.21.16"
APP_RIDE_THE_LIGHTNING_BOLTZ_IP="10.21.21.63"
APP_LIGHTNING_TERMINAL_IP="10.21.21.17"
APP_LIGHTNING_TERMINAL_PORT="3004"
APP_SPECTER_DESKTOP_IP="10.21.21.18"
Expand Down Expand Up @@ -221,6 +220,8 @@ APP_UPTIME_KUMA_PORT="8385"
APP_UPTIME_KUMA_IP="10.21.21.62"
APP_HELIPAD_PORT="2112"
APP_HELIPAD_IP="10.21.21.65"
APP_ITCHYSATS_IP="10.21.21.64"
APP_ITCHYSATS_PORT="7113"

# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
Expand Down Expand Up @@ -439,6 +440,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-uptime-kuma-ip>/${APP_UPTIME_KUMA_IP}/g" "${template}"
sed -i "s/<app-helipad-port>/${APP_HELIPAD_PORT}/g" "${template}"
sed -i "s/<app-helipad-ip>/${APP_HELIPAD_IP}/g" "${template}"
sed -i "s/<app-itchysats-ip>/${APP_ITCHYSATS_IP}/g" "${template}"
sed -i "s/<app-itchysats-port>/${APP_ITCHYSATS_PORT}/g" "${template}"
done

##########################################################
Expand Down
4 changes: 3 additions & 1 deletion templates/.env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,6 @@ APP_SYNCTHING_SYNC_PORT=<app-syncthing-sync-port>
APP_UPTIME_KUMA_PORT=<app-uptime-kuma-port>
APP_UPTIME_KUMA_IP=<app-uptime-kuma-ip>
APP_HELIPAD_PORT=<app-helipad-port>
APP_HELIPAD_IP=<app-helipad-ip>
APP_HELIPAD_IP=<app-helipad-ip>
APP_ITCHYSATS_IP=<app-itchysats-ip>
APP_ITCHYSATS_PORT=<app-itchysats-port>
4 changes: 4 additions & 0 deletions templates/torrc-apps-3-sample
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ HiddenServicePort 80 <app-uptime-kuma-ip>:3001
# helipad Hidden Service
HiddenServiceDir /var/lib/tor/app-helipad
HiddenServicePort 80 <app-helipad-ip>:2112

# itchysats Hidden Service
HiddenServiceDir /var/lib/tor/app-itchysats
HiddenServicePort 80 <app-itchysats-ip>:8000

0 comments on commit 8beafdc

Please sign in to comment.