-
-
- this.setState({show:false})}>{t("Hide")}}
- >
- {t("You are not using RoboSats privately")}
-
- Some features are disabled for your protection (e.g. chat) and you will not be able to complete a
- trade without them. To protect your privacy and fully enable RoboSats, use Tor Browser and visit the Onion site.
-
-
-
-
+
+ // Show selfhosted notice
+ if (this.state.isSelfhosted){
+ return(
+
+
+ this.setState({show:false})}>{t("Hide")}}
+ >
+ {t("You are self-hosting RoboSats")}
+ {t("RoboSats is served from your own node granting you the strongest security and privacy.")}
+
+
+
+ )
+ }
-
-
-
- {t("You are not using RoboSats privately")}
-
- You will not be able to complete a
- trade. Use Tor Browser and visit the Onion site.
-
-
+ // Show unsafe alert
+ if (!this.safe_urls.includes(this.getHost()) & this.state.show & !this.state.isSelfhosted){
+ return(
+
+
+
+ this.setState({show:false})}>{t("Hide")}}
+ >
+ {t("You are not using RoboSats privately")}
+
+ Some features are disabled for your protection (e.g. chat) and you will not be able to complete a
+ trade without them. To protect your privacy and fully enable RoboSats, use Tor Browser and visit the Onion site.
+
+
+
+
+
+
+
+
+ {t("You are not using RoboSats privately")}
+
+ You will not be able to complete a
+ trade. Use Tor Browser and visit the Onion site.
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- :
- null
- )
+ )
+ }
}
}
diff --git a/nodeapp/Dockerfile b/nodeapp/Dockerfile
index 6afdcb2c..9f1ec021 100644
--- a/nodeapp/Dockerfile
+++ b/nodeapp/Dockerfile
@@ -9,6 +9,8 @@ RUN apt-get update
RUN apt-get install -y socat
RUN npm install http-server
+RUN echo 'true' > static/selfhosted
+
EXPOSE 12596
CMD npm exec http-server -- . -p 12596 -P http://127.0.0.1:81 -i false -d false & nohup socat tcp4-LISTEN:81,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${ROBOSATS_ONION:-robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion}:80,socksport=${TOR_PROXY_PORT:-9050}
\ No newline at end of file
diff --git a/nodeapp/selfhosted b/nodeapp/selfhosted
new file mode 100644
index 00000000..e69de29b