Skip to content

Commit

Permalink
Add itchysats app (#1149)
Browse files Browse the repository at this point in the history

Co-authored-by: itchymax <[email protected]>
Co-authored-by: scratchy <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2021
1 parent 8b53840 commit 3addd45
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 1 deletion.
Empty file added apps/itchysats/data/.gitkeep
Empty file.
21 changes: 21 additions & 0 deletions apps/itchysats/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: "3.7"

services:
web:
image: ghcr.io/itchysats/itchysats/taker:0.3.3@sha256:216d19fafe41860c78366737a79088f1049240723cf587ba7b049b071c1fac62
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
- --password=$APP_PASSWORD
- mainnet
- --electrum=tcp://$ELECTRUM_IP:$ELECTRUM_PORT

networks:
default:
ipv4_address: $APP_ITCHYSATS_IP
25 changes: 25 additions & 0 deletions apps/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,30 @@
],
"path": "",
"defaultPassword": ""
},
{
"id": "itchysats",
"category": "Finance",
"name": "ItchySats",
"version": "v0.3.3",
"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": "",
"defaultUsername": "itchysats",
"deterministicPassword": true,
"torOnly": false
}
]
4 changes: 4 additions & 0 deletions scripts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,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 +441,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 3addd45

Please sign in to comment.