diff --git a/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nginx/https_nostrrsrelay.conf b/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nginx/https_nostrrsrelay.conf new file mode 100644 index 00000000..37014b0e --- /dev/null +++ b/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nginx/https_nostrrsrelay.conf @@ -0,0 +1,17 @@ +server { + listen 5051 ssl; + server_name nostrrsrelay; + + include /etc/nginx/mynode/mynode_ssl_params.conf; + include /etc/nginx/mynode/mynode_ssl_cert_key.conf; + + access_log /var/log/nginx/access_nostrrsrelay.log; + error_log /var/log/nginx/error_nostrrsrelay.log; + + location / { + proxy_pass http://127.0.0.1:5050; + + include /etc/nginx/mynode/mynode_ssl_proxy_params.conf; + } + +} \ No newline at end of file diff --git a/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nostrrsrelay.json b/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nostrrsrelay.json index ff8e3b91..ffa63c7c 100644 --- a/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nostrrsrelay.json +++ b/rootfs/standard/usr/share/mynode_apps/nostrrsrelay/nostrrsrelay.json @@ -30,7 +30,7 @@ "supports_testnet": false, "http_port": null, "https_port": null, - "extra_ports": [5050], + "extra_ports": [5050, 5051], "requires_bitcoin": false, "requires_docker_image_installation": true, "requires_electrs": false, @@ -49,6 +49,8 @@ "heading": "Instructions", "content": [ "Once the nostr relay is running, you can use nostr clients to connect to it using the local IP address of the device or via the tor service.", + "The relay will be run on port 5050 and 5051 (secure). The relay is not otherwise publicly exposed.", + "For example, you can add the relay to noscl via the command: noscl relay add wss://localhost:5051", "Enjoy!" ] }