mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 11:26:24 +00:00
Remove template coordinator
This commit is contained in:
parent
7eaaab7ae3
commit
6a5b7600df
@ -82,43 +82,6 @@
|
|||||||
"mainnetNodesPubkeys": ["030a425f5c69a29db30f6740d4e7df8f5612ef9955078ef4497490015464733dc8"],
|
"mainnetNodesPubkeys": ["030a425f5c69a29db30f6740d4e7df8f5612ef9955078ef4497490015464733dc8"],
|
||||||
"testnetNodesPubkeys": ["028e7a019180a664b84edf77ba656e96f2eb84f67f56d93020341caf4109e0dbc7"]
|
"testnetNodesPubkeys": ["028e7a019180a664b84edf77ba656e96f2eb84f67f56d93020341caf4109e0dbc7"]
|
||||||
},
|
},
|
||||||
"temp": {
|
|
||||||
"longAlias": "Template",
|
|
||||||
"shortAlias": "temp",
|
|
||||||
"description": "Mirror of 'Experimental'. Just to start testing the client with multiple coordinators",
|
|
||||||
"motto": "Don't trust, verify",
|
|
||||||
"color": "#000000",
|
|
||||||
"contact": {
|
|
||||||
"email": "contact@contact.com",
|
|
||||||
"telegram": "examplecoordinator",
|
|
||||||
"twitter": "examplecoordinator",
|
|
||||||
"matrix": "#example:matrix.org",
|
|
||||||
"website": "https://example.coordinator.com"
|
|
||||||
},
|
|
||||||
"badges": {
|
|
||||||
"isFounder": true,
|
|
||||||
"donatesToDevFund": 20,
|
|
||||||
"hasGoodOpSec": true,
|
|
||||||
"robotsLove": true,
|
|
||||||
"hasLargeLimits": true
|
|
||||||
},
|
|
||||||
"policies": {
|
|
||||||
"Rule #1": "You do not talk about RoboSats Club",
|
|
||||||
"Rule #2": "You DO NOT talk about RoboSats Club",
|
|
||||||
"Privacy Policy": "...",
|
|
||||||
"Data Policy": "..."
|
|
||||||
},
|
|
||||||
"mainnet": {
|
|
||||||
"onion": "http://robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion",
|
|
||||||
"clearnet": "http://127.0.0.1:12596/mainnet/exp"
|
|
||||||
},
|
|
||||||
"testnet": {
|
|
||||||
"onion": "http://robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion",
|
|
||||||
"clearnet": "http://127.0.0.1:12596/testnet/exp"
|
|
||||||
},
|
|
||||||
"mainnetNodesPubkeys": ["0282eb467bc073833a039940392592bf10cf338a830ba4e392c1667d7697654c7e"],
|
|
||||||
"testnetNodesPubkeys": ["03ecb271b3e2e36f2b91c92c65bab665e5165f8cdfdada1b5f46cfdd3248c87fd6"]
|
|
||||||
},
|
|
||||||
"local": {
|
"local": {
|
||||||
"longAlias": "Local Dev",
|
"longAlias": "Local Dev",
|
||||||
"shortAlias": "local",
|
"shortAlias": "local",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.3 KiB |
@ -1,59 +0,0 @@
|
|||||||
# Template Coordinator Mainnet Locations
|
|
||||||
location /mainnet/temp/static/assets/avatars/ {
|
|
||||||
proxy_pass http://mainnet_temp/static/assets/avatars/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /mainnet/temp/api/ {
|
|
||||||
# if ($request_method = 'OPTIONS') {
|
|
||||||
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
||||||
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
||||||
# add_header 'Access-Control-Max-Age' 1728000;
|
|
||||||
# add_header 'Content-Type' 'text/plain; charset=utf-8';
|
|
||||||
# add_header 'Content-Length' 0;
|
|
||||||
# return 204;
|
|
||||||
# }
|
|
||||||
# if ($request_method = 'POST') {
|
|
||||||
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
||||||
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
||||||
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
|
||||||
# }
|
|
||||||
# if ($request_method = 'GET') {
|
|
||||||
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
||||||
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
||||||
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
|
||||||
# }
|
|
||||||
proxy_pass http://mainnet_temp/api/;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /mainnet/temp/ws/ {
|
|
||||||
proxy_pass http://mainnet_temp/ws/;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Template Coordinator Testnet Locations
|
|
||||||
location /test/temp/static/assets/avatars/ {
|
|
||||||
proxy_pass http://testnet_temp/static/assets/avatars/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /testnet/temp/api/ {
|
|
||||||
proxy_pass http://testnet_temp/api/;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /testnet/temp/ws/ {
|
|
||||||
proxy_pass http://testnet_temp/ws/;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
# Template Coordinator Mainnet
|
|
||||||
upstream mainnet_temp {
|
|
||||||
server localhost:100;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Template Coordinator Testnet
|
|
||||||
upstream testnet_temp {
|
|
||||||
server localhost:1000;
|
|
||||||
}
|
|
@ -27,9 +27,11 @@ http {
|
|||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
# Every robosat coordinators socat tor bridge is an upstream.
|
# Every robosat coordinators socat tor bridge is an upstream.
|
||||||
# Experimental Coordinator
|
# Coordinators in the federation:
|
||||||
|
# Experimental
|
||||||
include /etc/nginx/conf.d/exp/upstreams.conf;
|
include /etc/nginx/conf.d/exp/upstreams.conf;
|
||||||
include /etc/nginx/conf.d/temp/upstreams.conf;
|
# Temple of Sats Coordinator
|
||||||
|
include /etc/nginx/conf.d/temple/upstreams.conf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
||||||
@ -62,8 +64,10 @@ http {
|
|||||||
|
|
||||||
|
|
||||||
# Proxy API, WS and Avatarts to the coordinator(s) socat bridges
|
# Proxy API, WS and Avatarts to the coordinator(s) socat bridges
|
||||||
|
# Experimental
|
||||||
include /etc/nginx/conf.d/exp/locations.conf;
|
include /etc/nginx/conf.d/exp/locations.conf;
|
||||||
include /etc/nginx/conf.d/temp/locations.conf;
|
# Temple of Sats
|
||||||
|
include /etc/nginx/conf.d/temple/locations.conf;
|
||||||
|
|
||||||
# do not log healtchecks made against "/selfhosted"
|
# do not log healtchecks made against "/selfhosted"
|
||||||
location /selfhosted {
|
location /selfhosted {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
# Every robosat coordinators needs a tor socat bridge.
|
# Every robosat coordinators needs a tor socat bridge.
|
||||||
|
|
||||||
|
###############################
|
||||||
# Experimental Coordinator
|
# Experimental Coordinator
|
||||||
# Mainnet
|
# Mainnet
|
||||||
mainnet_exp_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
mainnet_exp_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
||||||
@ -15,7 +16,11 @@ mainnet_exp_port=101
|
|||||||
# Testnet
|
# Testnet
|
||||||
testnet_exp_onion=robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
testnet_exp_onion=robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
||||||
testnet_exp_port=1001
|
testnet_exp_port=1001
|
||||||
|
# socat cmd
|
||||||
|
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}"
|
||||||
|
|
||||||
|
################################
|
||||||
# Temple of Sats Coordinator
|
# Temple of Sats Coordinator
|
||||||
# Mainnet
|
# Mainnet
|
||||||
mainnet_temple_onion=zixoneehmz7z2ctsnpuubcni4kxw5gp6fkyzjd2spo5atie5awiuwmyd.onion
|
mainnet_temple_onion=zixoneehmz7z2ctsnpuubcni4kxw5gp6fkyzjd2spo5atie5awiuwmyd.onion
|
||||||
@ -23,24 +28,10 @@ mainnet_temple_port=102
|
|||||||
# Testnet
|
# Testnet
|
||||||
testnet_temple_onion=ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion
|
testnet_temple_onion=ngdk7ocdzmz5kzsysa3om6du7ycj2evxp2f2olfkyq37htx3gllwp2yd.onion
|
||||||
testnet_temple_port=1002
|
testnet_temple_port=1002
|
||||||
|
# socat cmd
|
||||||
# Template Coordinator
|
|
||||||
# Mainnet
|
|
||||||
mainnet_temp_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
|
||||||
mainnet_temp_port=100
|
|
||||||
# Testnet
|
|
||||||
testnet_temp_onion=robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
|
||||||
testnet_temp_port=1000
|
|
||||||
|
|
||||||
# ... 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_temple_socat="socat tcp4-LISTEN:${mainnet_temple_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${mainnet_temple_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
mainnet_temple_socat="socat tcp4-LISTEN:${mainnet_temple_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${mainnet_temple_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
||||||
testnet_temple_socat="socat tcp4-LISTEN:${testnet_temple_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${testnet_temple_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
testnet_temple_socat="socat tcp4-LISTEN:${testnet_temple_port},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${testnet_temple_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_temple_socat & $testnet_temple_socat &$mainnet_temp_socat & $testnet_temp_socat & nginx
|
# RUN!
|
||||||
|
$mainnet_exp_socat & $testnet_exp_socat & $mainnet_temple_socat & $testnet_temple_socat & nginx
|
Loading…
Reference in New Issue
Block a user