mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 05:09:01 +00:00

* Add SVG icons for map pins * Add federation basis and new coordinator form (#793) * Add new coordinator entry issue form * Add Federation basis * Fix eslint errors from F2F and fix languages * Redo eslint @typescript-eslint/strict-boolean-expressions * Robot Page working * Contexts Working * Garage Working * CurrentOrder working * Federation model working --------- Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com> Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
36 lines
1.8 KiB
Bash
36 lines
1.8 KiB
Bash
#!/bin/sh
|
|
|
|
# Runs two simple services on a single container.
|
|
# 1) socat: exposes remote RoboSats backend from TOR socks to http//localhost:81.
|
|
# Every robosat coordinators needs a tor bridge
|
|
# 2) nginx: does the magic of redirecting every request to either local (the app, static,
|
|
# languages) or remote (for each coordinator, either API or WS, and static avatar)
|
|
|
|
# Every robosat coordinators needs a tor socat bridge.
|
|
|
|
# Experimental Coordinator
|
|
# Mainnet
|
|
mainnet_exp_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
|
mainnet_exp_port=81
|
|
# Testnet
|
|
testnet_exp_onion=robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
|
testnet_exp_port=82
|
|
|
|
# Template Coordinator
|
|
# Mainnet
|
|
mainnet_temp_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
|
mainnet_temp_port=83
|
|
# Testnet
|
|
testnet_temp_onion=robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
|
testnet_temp_port=84
|
|
|
|
# ... add more
|
|
|
|
mainnet_exp_socat="socat tcp4-LISTEN:${mainnet_exp_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${mainnet_exp_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
|
testnet_exp_socat="socat tcp4-LISTEN:${testnet_exp_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${testnet_exp_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
|
|
|
mainnet_temp_socat="socat tcp4-LISTEN:${mainnet_temp_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${mainnet_temp_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
|
testnet_temp_socat="socat tcp4-LISTEN:${testnet_temp_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${testnet_temp_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
|
|
|
|
|
$mainnet_exp_socat & $testnet_exp_socat & $mainnet_temp_socat & $testnet_temp_socat & nginx |